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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000 Query and VBA 1

Status
Not open for further replies.

tmadhavi62

Programmer
Apr 15, 2004
4
US
Hi,
I have a form with a command button. When I click the command button a query already existing should open and also the user should be able to see the show table box without going to the menu query--Show table or without doing a right click

I know I can open a query using the docmd.openquery but how do I get the second part.
Also is there anyway I can secure a query so that users of the database can't edit or delete that query?

Thanks,
Madhavi
 
You can use the following

docmd.runcommand acCmdShowTable




Nick
 
Hi egobbitz,
Thanks for the help. It worked for the show table part. Do you have a suggestion for the second part of my question to have a query template in the database which users can't delete or edit.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top