If anyone can shed some light on this I would appreciate it.
I'm new to ADO.
I have an Access 97 Database with several tables.
Student table, test table, in a one to many
relationships.
When I click on a DataList control that is linked up to Adodc1
with the recordsource Student, I am try to sysnchronize this
with a data grid that is linked to the test table (Adodc7).
I can't get them to be in sync. Clicking on a
student will not show the students test data.
The field studentid is the common field.
Sample of my code:
Private Sub Adodc1_MoveComplete(....
Dim strSQL as string
strSQL = "Select * From Tests where Tests.Studentid = "Adodc1.Recordset.Studentid
Adodc7.RecordSource = strSQL
Adodc7.refresh
end sub
I'm doing something wrong but I haven't found the answer.
Any suggestions.
Thanks
Jack
I'm new to ADO.
I have an Access 97 Database with several tables.
Student table, test table, in a one to many
relationships.
When I click on a DataList control that is linked up to Adodc1
with the recordsource Student, I am try to sysnchronize this
with a data grid that is linked to the test table (Adodc7).
I can't get them to be in sync. Clicking on a
student will not show the students test data.
The field studentid is the common field.
Sample of my code:
Private Sub Adodc1_MoveComplete(....
Dim strSQL as string
strSQL = "Select * From Tests where Tests.Studentid = "Adodc1.Recordset.Studentid
Adodc7.RecordSource = strSQL
Adodc7.refresh
end sub
I'm doing something wrong but I haven't found the answer.
Any suggestions.
Thanks
Jack