I have got the vb code below for a clck event, to display the database window but it isnt working. And I HAVE A COMMAND button to click as you can see below to open the window so pressing F11 is no good as I need this command button to trigger the event. I am getting an error when I click the command button?
Private Sub cmdDisplayDatabaseWindow_Click()
DoCmd.SelectObject acTable, , True
End Sub
I thought this was all the code you need to display the window when using a command button? ( I dont have any macros setup with this or anything else)
Thanks
Private Sub cmdDisplayDatabaseWindow_Click()
DoCmd.SelectObject acTable, , True
End Sub
I thought this was all the code you need to display the window when using a command button? ( I dont have any macros setup with this or anything else)
Thanks