it is suppose that i wrote the student id in a text then press button search then
the data appear in the data grid
Private Sub Command1_Click() Adodc2.RecordSource = " select * from Student where StdID = " & Text1.Text & "" If Adodc2.Recordset.EOF = True Then MsgBox "Record not found" Else DataGrid1.datasource = Adodc2.recordsource DataGrid1.Refresh End If End Sub
there is an error in DataGrid1.datasource = Adodc2.recordsourcei dont know why?

New Topic/Question
Reply



MultiQuote




|