bonusmarch
MIS
I have been trying to figure this out for hours. Can someone help. I have this SQL statment in Access, and it keeps giving me this error message:
Run-time error '2342':
A RunSQL action requires an argument consisting of an SQL statement.
Private Sub Command2_Click()
If cmbBargainUnit.Value = "A" Then
DoCmd.RunSQL "Select PermanentTable.* from PermanentTable;", -1
DoCmd.OpenReport "rptBargainingUnit-A", acViewPreview
End If
End Sub
This statement looks simple enough, but it's not able to execuute.
Run-time error '2342':
A RunSQL action requires an argument consisting of an SQL statement.
Private Sub Command2_Click()
If cmbBargainUnit.Value = "A" Then
DoCmd.RunSQL "Select PermanentTable.* from PermanentTable;", -1
DoCmd.OpenReport "rptBargainingUnit-A", acViewPreview
End If
End Sub
This statement looks simple enough, but it's not able to execuute.