I have exausted my novice knowledge over this.
I have three tables namely StudentRecord, session and payments
StudentRecord has these fields
StudentID (pri. Key)
Name
Address .....
Session has these fields
SessionID (pri. Key)
StudentID ( f. Key)
Schoolyear
Payments has these fields
PaymentID ( pri. Key)
SessionID ( f.key)
AmountPaid
Now I created a main form called studentRecord using the studentRecord table as record source.
Then I created two subforms called session subform and payments subform all attached to the main form(studentRecord)
I want a VBA if I enter a record in session subform,the payments subform automatically register the sessionID of that record and setfocus on the sessionID of that record.
Because at the moment I have to close and reopen the form or manually refresh all or move to previous record and back before a new record from session subform is registered in payments subform
Any help is welcomed (access 2007)
I have three tables namely StudentRecord, session and payments
StudentRecord has these fields
StudentID (pri. Key)
Name
Address .....
Session has these fields
SessionID (pri. Key)
StudentID ( f. Key)
Schoolyear
Payments has these fields
PaymentID ( pri. Key)
SessionID ( f.key)
AmountPaid
Now I created a main form called studentRecord using the studentRecord table as record source.
Then I created two subforms called session subform and payments subform all attached to the main form(studentRecord)
I want a VBA if I enter a record in session subform,the payments subform automatically register the sessionID of that record and setfocus on the sessionID of that record.
Because at the moment I have to close and reopen the form or manually refresh all or move to previous record and back before a new record from session subform is registered in payments subform
Any help is welcomed (access 2007)