Hi Kulrom
Once again I need your help.
I want to use data grid in my project. If I use Data Grid then it will display all the records from the table. But My requirement is somewhat different.
E.g. I have a databse in access-" db1"
It is having 1 table "Table1". This table is having 4 fields : - ID, name, role, address
The "name" field is having 4 records : John, harry, tarun, harry.
Here "harry" is stored twice.
I want to include a searching form containing textbox where user has to write the name of the person whose records he/she want to search & click on "SEARCH" button. I don't want to do this with "ID".
Now I want that when the user clicks on search button after writing the name of the person, all his records must be displayed in data grid not in textboxes. I don't want to display all the records from the table but only those records that are related to that name which is entered in textbox.
E.g. As written above "harry" is stored twice in the "table 1" of database "db1". When user writes "harry" in textbox, all the records related to "harry" in that table must be displayed in data grid.
I hope that you can solve this problem. I shall be very grateful to you. Once again Thanks a lot for your previous response.
(SIMRANJIT SINGH)
Once again I need your help.
I want to use data grid in my project. If I use Data Grid then it will display all the records from the table. But My requirement is somewhat different.
E.g. I have a databse in access-" db1"
It is having 1 table "Table1". This table is having 4 fields : - ID, name, role, address
The "name" field is having 4 records : John, harry, tarun, harry.
Here "harry" is stored twice.
I want to include a searching form containing textbox where user has to write the name of the person whose records he/she want to search & click on "SEARCH" button. I don't want to do this with "ID".
Now I want that when the user clicks on search button after writing the name of the person, all his records must be displayed in data grid not in textboxes. I don't want to display all the records from the table but only those records that are related to that name which is entered in textbox.
E.g. As written above "harry" is stored twice in the "table 1" of database "db1". When user writes "harry" in textbox, all the records related to "harry" in that table must be displayed in data grid.
I hope that you can solve this problem. I shall be very grateful to you. Once again Thanks a lot for your previous response.
(SIMRANJIT SINGH)