Code:
Dim Mydb As Database
Set Mydb = CurrentDb
With Mydb.OpenRecordset("Select * from Students", dbOpenDynaset, dbSeeChanges)
Do Until .EOF
With Mydb.OpenRecordset("Select * from Sessions Where Studentid = " & !Studentid, dbOpenDynaset, dbSeeChanges)
Debug.Print !StudentFirstName [COLOR=grenn]'Field in Students table[/color]
End With
.MoveNext
Loop
End With
When I run this code I get this error
Item not found in this collection.
Is there some way that I can indacate that this is from the above(parent) with?