Trying to create a new stored procedure from code, running the code
below I just cut and pasted directly from the MS Knowledge Base, I get
the following error message:
Line 1: Incorrect syntax near 'prmCity'
Any ideas?
lq
Code:
Public Function CreateProc()
Dim strProc As String
strProc = "Create Procedure qryCustByCity " & _
"(prmCity varchar) as " & _
"select * from Customers where City = prmCity"
CurrentProject.Connection.Execute strProc
End Function