Fredgarner
Technical User
I am making a switchboard in form design view and cannot find a command button that will return me to the database window. Does anyone know how I can make one? (There is one on the Northwind sample database).
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub DisplayDatabaseWindow_Click()
' This code created in part by Command Button Wizard.
On Error GoTo Err_DisplayDatabaseWindow_Click
Dim strDocName As String
strDocName = "Categories"
' Close Main Switchboard form.
DoCmd.Close
' Give focus to Database window; select Categories table (first
' form in list).
DoCmd.SelectObject acTable, strDocName, True
Exit_DisplayDatabaseWindow_Click:
Exit Sub
Err_DisplayDatabaseWindow_Click:
MsgBox Err.Description
Resume Exit_DisplayDatabaseWindow_Click
End Sub
Private Sub cmdShowDBWindow_Click()
DoCmd.SelectObject acTable, [b]ATableName[/b], True
End Sub
don't show the db window to them they can do anything including deleting objectsFredgarner said:I would like to make the database useable by people who are not especially computer-literate, so F11 is not really an option
Private Sub cmdDisplayDBWindow_Click()
SendKeys "{f11}"
End Sub