dpapala
04-20-2004, 11:59 AM
hi,
i have a table in ms access named "students" and i want to fill a datagrid with an sql query that retrieves data from this table.
-----------------------------------
Adodc1.RecordSource = "Select studid,schools,depart From students where studid =" & Text6.Text
Set DataGrid1.DataSource = Adodc1
-----------------------------------
I use this code but on the datagrid i see the 3 fields for all the records not only the records that the id of the student is equal to text6.
Any suggestions?
i have a table in ms access named "students" and i want to fill a datagrid with an sql query that retrieves data from this table.
-----------------------------------
Adodc1.RecordSource = "Select studid,schools,depart From students where studid =" & Text6.Text
Set DataGrid1.DataSource = Adodc1
-----------------------------------
I use this code but on the datagrid i see the 3 fields for all the records not only the records that the id of the student is equal to text6.
Any suggestions?