S
Scott
My code below is giving the syntax error when I try to pass a begin and end
date parameter to a sproc in my Access ADP Project. I've tried delimiting
the date parameters every way possible but continue to get a syntax error.
Can someone help with delimiting my dates?
' CODE *************
Dim sSQL As String
sSQL = "Exec [mySproc]" & " " & Forms!myForm!txtDateBegin & ", " &
Forms!myForm!txtDateEnd
Debug.Print sSQL
CurrentProject.Connection.Execute sSQL, , adExecuteNoRecords + adCmdText
' ERROR *************
Incorrect syntax near '/'
date parameter to a sproc in my Access ADP Project. I've tried delimiting
the date parameters every way possible but continue to get a syntax error.
Can someone help with delimiting my dates?
' CODE *************
Dim sSQL As String
sSQL = "Exec [mySproc]" & " " & Forms!myForm!txtDateBegin & ", " &
Forms!myForm!txtDateEnd
Debug.Print sSQL
CurrentProject.Connection.Execute sSQL, , adExecuteNoRecords + adCmdText
' ERROR *************
Incorrect syntax near '/'