Command Button

B

Bill

Hi,

I create a button on the form. When I click the button and it will open up the query screen but I want the query as READ-ONLY instead of edit the query. How do I set "read-only" on queries?

Your help would be much appreciated.

Bill
 
F

Fredg

You have evidently already written code in the button click event to open the query.
This information is readily available in Access Help.
All you need have done is place the cursor within the word OpenQuery and press F1.

DoCmd.OpenQuery "Sales Totals Query", , acReadOnly

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.


Hi,

I create a button on the form. When I click the button and it will open up the query screen but I want the query as READ-ONLY instead of edit the query. How do I set "read-only" on queries?

Your help would be much appreciated.

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top