Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Form/Query

Status
Not open for further replies.

sweevo

Programmer
Jan 30, 2002
182
GB
Hello,

I have a parameter query, and a form that is run by a report to provide the parameters. This works fine apart from one aspect -- if I cancel (and close) the parameter form, the query still prompts for the missing parameters.

Is there a way to just exit the whole lot without these prompts?

Any help would be appreciated.

Thanks.
 
You need to make sure that the actual query is canceled as well. When you cancel, you need to put, at the end of the cancel routine, something to also cancel the query. It has been a while since I did that, so maybe someone else will have the code to do that.

You could probably look in help for a way to cancel a query programatically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top