Show Database window

  • Thread starter Thread starter Graham
  • Start date Start date
G

Graham

I need to add write code to show the database window (to
be called from a command button on the switchboard)

How do I do this??

Thanks
 
Graham said:
I need to add write code to show the database window (to
be called from a command button on the switchboard)

How do I do this??

Thanks

DoCmd.SelectObject acTable,"AnyTableName", True

The final true indicates that you want to select the object "in the db window".
If it is currently hidden this forces it to display.
 
You can even skip the 2nd argument (Table name) like:

DoCmd.SelectObject acTable, , True
 

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

Back
Top