Hello
I would like to place a button that directly opens a particular table after
clicking it.
I am rather new to Access and cannot find the option in the Wizard..
Can someone help me?
So do you know how to write code?
Add a command button to the form (without using the Wizard).
Display the button's property sheet.
Select the Event tab.
On the Click event line enter
[Event Procedure]
Then click on the little button with the 3 dots that appears on that
line.
The code window will open with the cursor flashing between two already
existing lines of code.
Between those 2 lines write:
DoCmd.OpenTable "TableName"
Change "TableName" to whatever the actual table name is.
Exit and save the changes.
Note... the fact that you can open the table does not mean you should.
Access Tables are for storing of data, not for viewing or
manipulation.
Allowing users to work directly in a Table is like playing with
matches in a hay loft.
You would be better off opening a form bound to the table in Datasheet
View.
Code the button's click event:
DoCmd.OpenForm "FormName", acFormDS