R
Rhonda Fischer
Hello,
I would like to open my frmDeliveries Form which has
a subform of frmDeliverySub, with a recordsource
specifying a date range for Deliveries printed. I would
also like to display All deliveries without a date range,
without copying the two forms and rename them. I was
hoping to make use of the openarg and pass a value
to the parent form that would determine which subform
to display. Is there a way of doing this?
---------------------------------------------------------
Private Sub cmdLaunchFrmDeliveries_Click()
'Open parent form and OpenArg Value 1 to indicate
'subform with daterange query as recordsource
DoCmd.OpenForm "frmDeliveries", , , , , , 1
End Sub
---------------------------------------------------------
I'm a bit stuck here, I guess the Load event of both
parent and subform happen about the same time?
Any suggestion would be terrific
Thank you very much.
Rhonda
I would like to open my frmDeliveries Form which has
a subform of frmDeliverySub, with a recordsource
specifying a date range for Deliveries printed. I would
also like to display All deliveries without a date range,
without copying the two forms and rename them. I was
hoping to make use of the openarg and pass a value
to the parent form that would determine which subform
to display. Is there a way of doing this?
---------------------------------------------------------
Private Sub cmdLaunchFrmDeliveries_Click()
'Open parent form and OpenArg Value 1 to indicate
'subform with daterange query as recordsource
DoCmd.OpenForm "frmDeliveries", , , , , , 1
End Sub
---------------------------------------------------------
I'm a bit stuck here, I guess the Load event of both
parent and subform happen about the same time?
Any suggestion would be terrific
Thank you very much.
Rhonda