I haven't used access in years and am trying to help my son learn to use it, but encountering some errors on basic VBA code
He has a form with various buttons eg next record etc. He is trying to use a button to open the underlying table. The underlying code is as follows:
Private Sub View_Click()
DoCmd.Close
DoCmd.OpenTable "tblPerformers", , , ""
End Sub
He keeps getting a compile error"wrong number of arguments or invalid property assignment"
any help would be greatly appreciated.
He has a form with various buttons eg next record etc. He is trying to use a button to open the underlying table. The underlying code is as follows:
Private Sub View_Click()
DoCmd.Close
DoCmd.OpenTable "tblPerformers", , , ""
End Sub
He keeps getting a compile error"wrong number of arguments or invalid property assignment"
any help would be greatly appreciated.