G
Guest
I am using the following to open my report. The form frm_Period has dates
which i use to filter the report......
I want to add a Yes/No response to the form and have the macro wait for the
response.
How do I go about this? Do I add 2 command buttons or something? What else
is required in my code?
Function myMS()
a = "rpt_MS_Asia_Pacific"
DoCmd.OpenForm "frm_Period", acNormal, "", "", , acNormal
myPeriod2 = [Forms]![frm_Period]![cb_Period]
DoCmd.OpenReport a, acPreview, "", "[tbl_Period]![Period]=""" &
myPeriod2 & """" & " AND [tbl_Time]![Time]=""MAT"""
End Function
which i use to filter the report......
I want to add a Yes/No response to the form and have the macro wait for the
response.
How do I go about this? Do I add 2 command buttons or something? What else
is required in my code?
Function myMS()
a = "rpt_MS_Asia_Pacific"
DoCmd.OpenForm "frm_Period", acNormal, "", "", , acNormal
myPeriod2 = [Forms]![frm_Period]![cb_Period]
DoCmd.OpenReport a, acPreview, "", "[tbl_Period]![Period]=""" &
myPeriod2 & """" & " AND [tbl_Time]![Time]=""MAT"""
End Function