I've encountered a strange form/subform synchronization problem.
Everything works great as I'm paging forward through my records as long as my mainform records have children records. Once I get to a record that has no children in the subform then I'm out of sync and I can't get back in sync unless I close the form and reopen.
There are three tables involved so it is a little more complicated than just a one-to-many relationship. This is a database for a school. I have these tables involved with this form:
1)tblParent
2)tblTelephones
3)tblParentTelephones to resolve the many-to-many-relationships.
ParentID is common to tblParent and tblParentTelephone. Telephoneid is common to tblTelephone and tblParentTelephone.
In the On Current event of the main form I've discovered that when there are no telephone records for the parent the ParentID in the subform becomes null. Once it becomes null it stays null even if I requery the subform. I've even tried to reset the parentid on the subform to the parentid on the mainform and then requery but then I get a problem with the telephoneid.
Anybody ever run into this kind of a problem? Any help would be greatly appreciated.
Everything works great as I'm paging forward through my records as long as my mainform records have children records. Once I get to a record that has no children in the subform then I'm out of sync and I can't get back in sync unless I close the form and reopen.
There are three tables involved so it is a little more complicated than just a one-to-many relationship. This is a database for a school. I have these tables involved with this form:
1)tblParent
2)tblTelephones
3)tblParentTelephones to resolve the many-to-many-relationships.
ParentID is common to tblParent and tblParentTelephone. Telephoneid is common to tblTelephone and tblParentTelephone.
In the On Current event of the main form I've discovered that when there are no telephone records for the parent the ParentID in the subform becomes null. Once it becomes null it stays null even if I requery the subform. I've even tried to reset the parentid on the subform to the parentid on the mainform and then requery but then I get a problem with the telephoneid.
Anybody ever run into this kind of a problem? Any help would be greatly appreciated.