×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Detecting Cancel on Parameter Query to stop Result Form from appearing

Detecting Cancel on Parameter Query to stop Result Form from appearing

Detecting Cancel on Parameter Query to stop Result Form from appearing

(OP)
Hi,

I am using Access 2000.

I have a main menu that starts with Access. On it I have an option that runs a parameter query, then pops up a form with the query results. My problem is, if the user selects this option, then clicks cancel on the parameter box, the results form pops up(empty, but there). I want to detect the cancel click and stop the call to the form. I am just learning, so a fairly detailed answer would be appriciated! Thanks

Catrina

RE: Detecting Cancel on Parameter Query to stop Result Form from appearing

Although this may seem like a lot of work it should do the trick.
Instead of the button launching the query which has a Prompt in it.  make the button ask the question using an InputBox function. Then put the value if there is one in a hidden textbox on your form and have the query look at that box. If the user presses Cancle then it will cancel if the user presses OK it will take that vlaue and put it in a text box and then launch the query.


DougP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close