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

Bring up table from a command button? 1

Status
Not open for further replies.

BLutgen

Technical User
May 25, 2001
47
US
I have a end user who likes to use the main table to locate data. I am using a switchboard with command buttons for navigation. Is there a way to open the table from a command button? I didn't see it in the wizard, and am not yet real proficient at VB to know the command for it. Thanks in advance for the help.

Brad
 
Brad,

Here is the code to put for the command button's "on click" property: (substituting the "YourTableName" with the table you wish to be opened... leaving the "" ).

Private Sub cmdOpenTable_Click()

DoCmd.OpenTable "YourTableName", acNormal, acEdit

End Sub


....hope that's what you need!
~Rob
 
Thanks a lot. That is exactly what I needed to know.

Brad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top