Hi,
I am writing some code for a database button but the error message argument not optional appears, saying that my OpenForm is incorrect. The code is below can any body help? Thanks.
Private Sub Command47_Click()
DoCmd.OpenForm.[tbljobs main]
DoCmd.GoToRecord , , acNewRec
DoCmd.ApplyFilter "jobs form search, , ,"
End Sub
I am writing some code for a database button but the error message argument not optional appears, saying that my OpenForm is incorrect. The code is below can any body help? Thanks.
Private Sub Command47_Click()
DoCmd.OpenForm.[tbljobs main]
DoCmd.GoToRecord , , acNewRec
DoCmd.ApplyFilter "jobs form search, , ,"
End Sub