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
 
Back
Top