G
Guest
I have a form (BatchTrackingEntryForm) with a subform (Descrepancy Query
Subform). I have added a command button that has an on click expression that
reads
Private Sub Command77_Click()
DoCmd.OpenForm "Descrepancies Query", , , "[Descrepancies
Query]![BatchID]=Forms![BatchTrackingEntryForm]![BatchID]", acFormAdd
End Sub
The (Descrepancies Query) form does open, but with the acFormAdd the
[BatchID] Field is blank instead of keeping it from the
(BatchTrackingEntryForm). I have tried severl different ways to keep the
[BatchID] field, like setting it in the criteria of the Descrepancy Query
=[Forms]![BatchTrackingEntryForm]![BatchID] but for some reason I just cant
get it to stay. Can someone help? Thanks in advance!
Subform). I have added a command button that has an on click expression that
reads
Private Sub Command77_Click()
DoCmd.OpenForm "Descrepancies Query", , , "[Descrepancies
Query]![BatchID]=Forms![BatchTrackingEntryForm]![BatchID]", acFormAdd
End Sub
The (Descrepancies Query) form does open, but with the acFormAdd the
[BatchID] Field is blank instead of keeping it from the
(BatchTrackingEntryForm). I have tried severl different ways to keep the
[BatchID] field, like setting it in the criteria of the Descrepancy Query
=[Forms]![BatchTrackingEntryForm]![BatchID] but for some reason I just cant
get it to stay. Can someone help? Thanks in advance!