SachAccess
Active member
- Local time
- Today, 19:31
- Joined
- Nov 22, 2021
- Messages
- 403
Hi,
I have changed real names in below example.
Am trying to open a table with button provided in a form.
' DoCmd.OpenTable "tbl_Dummy", acViewReport, acReadOnly 'Not working'
This line is not working for me.
I tried editing it too but not able to succeed. Doing it for the first time.
Can anyone please help me in this.
I have changed real names in below example.
Am trying to open a table with button provided in a form.
' DoCmd.OpenTable "tbl_Dummy", acViewReport, acReadOnly 'Not working'
This line is not working for me.
I tried editing it too but not able to succeed. Doing it for the first time.
Can anyone please help me in this.
Code:
Option Compare Database
Option Explicit
Private Sub Command0_Click()
DoCmd.OpenTable "tbl_Dummy", acViewNormal, acReadOnly 'Will open as normal table in read-only mode
DoCmd.OpenTable "tbl_Dummy", acViewPivotChart, acEdit 'Did not see any Pivot chart
DoCmd.OpenTable "tbl_Dummy", acViewReport, acReadOnly 'Not working
End Sub