H
hntsignif
Why would this code:
------------------------------------------------------------
Private Sub DateCheckButton_Click()
On Error GoTo Err_DateCheckButton_Click
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[SEASONS]=' " & Me.SEASON & " ' And [DevCodeA]=' " &
Me.DEVCode & " ' And [MarketingName]=' " & Me.MARKETINGNAME & " ' "
stDocName = "MilestoneDates"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_DateCheckButton_Click:
Exit Sub
Err_DateCheckButton_Click:
MsgBox Err.Description
Resume Exit_DateCheckButton_Click
End Sub
------------------------------------------------------------
Give me this error:
-----------------------------------------------------------
Syntax error (missing operator) in query expression '[SEASONS]='SP11' And
[DevCodeA]='E72410' And [MarketingName]='Womens Training No Show".
-----------------------------------------------------------
As you can see, the correct information is drawing into the error but the
form is not opening. It was working before.
Help. This is frustrating me!
------------------------------------------------------------
Private Sub DateCheckButton_Click()
On Error GoTo Err_DateCheckButton_Click
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[SEASONS]=' " & Me.SEASON & " ' And [DevCodeA]=' " &
Me.DEVCode & " ' And [MarketingName]=' " & Me.MARKETINGNAME & " ' "
stDocName = "MilestoneDates"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_DateCheckButton_Click:
Exit Sub
Err_DateCheckButton_Click:
MsgBox Err.Description
Resume Exit_DateCheckButton_Click
End Sub
------------------------------------------------------------
Give me this error:
-----------------------------------------------------------
Syntax error (missing operator) in query expression '[SEASONS]='SP11' And
[DevCodeA]='E72410' And [MarketingName]='Womens Training No Show".
-----------------------------------------------------------
As you can see, the correct information is drawing into the error but the
form is not opening. It was working before.
Help. This is frustrating me!