I am using an after update event to clear few fields in the main form as well as the records in the sub form. It works well only to the point where fields in the main form are cleared and and only the first record in the sub form (continuous form). I guess I need to use code to delete all records in the sub form relevant to the main record instrad ofclearing them. Not sure what code to use. Will appreciate some help. I am using following code:
Private Sub Department_AfterUpdate()
Me!Position.Requery
Me!Position = Me.Position.Column(0, 0)
Me!frmRelationships.Form!RPosition.Requery
Me!frmRelationships.Form!RPosition = Null
Me!frmDReports.Form!DReports.Requery
Me!frmDReports.Form!DReports = Null
End Sub
Cheers
AK
Note: Using Access 97 - still.
Private Sub Department_AfterUpdate()
Me!Position.Requery
Me!Position = Me.Position.Column(0, 0)
Me!frmRelationships.Form!RPosition.Requery
Me!frmRelationships.Form!RPosition = Null
Me!frmDReports.Form!DReports.Requery
Me!frmDReports.Form!DReports = Null
End Sub
Cheers
AK
Note: Using Access 97 - still.