Hi,
How do you call/refer to a subform (Delivery Dockets) of a form (Jobs) from a popup form (Print Screen). I have a form called Jobs and subform called Delivery Dockets.
I have cmdButton on the main form that runs the code below to open a popup form called "Print Screen" for printing reports. Currently users enter a number of reports to print in a field called "Pieces" of the subform.
Dim I As Integer
If Me.Flagged = True Then
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteDeliveryTemp", acNormal, acEdit
DoCmd.OpenQuery "AppendDeliveryTemp", acNormal, acEdit
For I = 1 To Forms!Jobs![Delivery Dockets].Form!Pieces
Next
DoCmd.SetWarnings True
stDocName = "Print Screen"
DoCmd.OpenForm stDocName
I would like users to enter the number to print in an unbound field called "NumberToPrint" in the popup form "Print Screen" but can't get my around how to refer to a subform on a form from a popup form.
Thanks
How do you call/refer to a subform (Delivery Dockets) of a form (Jobs) from a popup form (Print Screen). I have a form called Jobs and subform called Delivery Dockets.
I have cmdButton on the main form that runs the code below to open a popup form called "Print Screen" for printing reports. Currently users enter a number of reports to print in a field called "Pieces" of the subform.
Dim I As Integer
If Me.Flagged = True Then
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteDeliveryTemp", acNormal, acEdit
DoCmd.OpenQuery "AppendDeliveryTemp", acNormal, acEdit
For I = 1 To Forms!Jobs![Delivery Dockets].Form!Pieces
Next
DoCmd.SetWarnings True
stDocName = "Print Screen"
DoCmd.OpenForm stDocName
I would like users to enter the number to print in an unbound field called "NumberToPrint" in the popup form "Print Screen" but can't get my around how to refer to a subform on a form from a popup form.
Thanks