I'm somewhat new to VB so please hang with me. I am trying to run a query using VB when I click a command button, then close the query so the user doesn't see it happening but it doesn't seem to be working. This is what I have for code so far:
(My Query is named "DateWellPrevious")
It says that it expects an equals sign after the DoCmd.OpenQuery statement and the DoCmd.Close statement.
Any Suggestions?
-Chris
(My Query is named "DateWellPrevious")
Code:
Private Sub test_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery(DateWellPrevious,acViewNormal,[acEdit])
DoCmd.Close(acQuery,[DateWellPrevious],[acSaveYes])
End Sub
Any Suggestions?
-Chris