Would like to hide and Automate a Parameter Message Box

Liz_I3

Well-known Member
Joined
Dec 30, 2002
Messages
647
Office Version
  1. 2016
Platform
  1. Windows
I am working with a parameter query. When my DB opens the form that is run opens the parameter query in hidden view. Of course the message box comes up to Enter Parameter Value. I have set the query so that if no value is entered all are shown. My question is when the DB is open and the Message box come up I want to code it (in VBA) so that when the Enter Paramenter Value is displayed the OK button to be pressed so the user does not have to do it. Actually it would be good if the message box was not visable at all. Is this Possible?

would be grateful for any assistance

Thanks Liz
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Liz Clarify your question, The last sentence threw me off...you want code to press OK on the parameter??


But throughout your question it sounded like all you need is to put a static criteria in your query....or

If you want VBA, you need a variable to take the place of the critieria so that you can pass it to the procedure. explain where you might obtain that value so someone can give you the example.

I just thought I'd bump your post back up.

Ziggy
 
Upvote 0

Forum statistics

Threads
1,221,560
Messages
6,160,493
Members
451,653
Latest member
agata

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top