Sherri1509
New member
- Local time
- Today, 12:34
- Joined
- Jan 24, 2002
- Messages
- 7
I have some reports that uses an unbounded form to enter filter criteria for beginning and ending date on the report. The form has a CANCEL and an OK botton. The OK button works fine. However when the cancelled botton is click the query stills runs requesting the paramaters. The onclick on the CANCEL button calls this function.
Private Sub FormCancel_Click()
DoCmd.Close acForm, Me.Name
End Sub
How can I get this query from still running?
Macros are created for the form.
It has a CancelEvent macro that is suppose to cancel printing or previewing of the report. The macro has condition:
Not FunctionName("FormName")
There is also a macro for the Cancel Button. Its action is set to close
The cancel button has onclick properties set to Formname.Cancel
I followed the instruction in MS Access Help. This can be found by entering criteria"form to enter report criteria"
[This message has been edited by Sherri1509 (edited 01-24-2002).]
Private Sub FormCancel_Click()
DoCmd.Close acForm, Me.Name
End Sub
How can I get this query from still running?
Macros are created for the form.
It has a CancelEvent macro that is suppose to cancel printing or previewing of the report. The macro has condition:
Not FunctionName("FormName")
There is also a macro for the Cancel Button. Its action is set to close
The cancel button has onclick properties set to Formname.Cancel
I followed the instruction in MS Access Help. This can be found by entering criteria"form to enter report criteria"
[This message has been edited by Sherri1509 (edited 01-24-2002).]