build
10-20-2000, 06:12 AM
Hi
Access 97
I have a query and in one of the fields under criteria I have [Forms]![frmWhatToDoOnTheDay]![lngBookingID].
when I run the query a message box comes up (ENTER PARAMETER VALUE) asking for what date.
Now all is ok if I put in the date, BUT if I press the Cancel button I then get a Run time error 2501.The open form action was cancelled
you must use a method of the DoCmd etc etc. If then I press end It closes the data base down.
Now if I start my data base with Shift then open it up then open the form then run the query press cancel it would take me
back to the table forms report etc.
So how can I get it to go back to my start up form when I press cancel when the data base is locked.
Or if cancel was pressed could I have my own message box and program that?
If so how do you do this..
Regards
John
stonesby@ntlworld.com
john@stonesby.demon.co.uk
rymarks@btinternet.com
Access 97
I have a query and in one of the fields under criteria I have [Forms]![frmWhatToDoOnTheDay]![lngBookingID].
when I run the query a message box comes up (ENTER PARAMETER VALUE) asking for what date.
Now all is ok if I put in the date, BUT if I press the Cancel button I then get a Run time error 2501.The open form action was cancelled
you must use a method of the DoCmd etc etc. If then I press end It closes the data base down.
Now if I start my data base with Shift then open it up then open the form then run the query press cancel it would take me
back to the table forms report etc.
So how can I get it to go back to my start up form when I press cancel when the data base is locked.
Or if cancel was pressed could I have my own message box and program that?
If so how do you do this..
Regards
John
stonesby@ntlworld.com
john@stonesby.demon.co.uk
rymarks@btinternet.com