I added some code to explicitely close the report if user presses the cancel button and thereby closes the form. And I still get prompted to enter in values for the parameter, which I don't want to do if I want to cancel out and close everything...
Here's my code ..
Private Sub Report_Open(Cancel As Integer)
Dim fcount As Integer
DoCmd.OpenForm "frmParameters", acNormal, , , acFormEdit, acDialog 'this suspends running of report until form is hidden or closed
'code pause here until a buttom is pushed...
fcount = IIf(Forms.Count = 0, 0, 1) 'counts how many forms are open and flags variable if at least one is open
If fcount = 0 Then 'runs if no forms are open, suppose to close the report if the parameter form is closed
DoCmd.Close acReport, "Report_2002GiftsAllDrops_CircPlan_SubReport(Buyers)"
End If
'problem is it still asks for parameters
End Sub
Any help would be very appreciated, I've been stuck on this problem for awhile!!
Thanks
