S
sparkane
I'm trying to create a stored procedure in access 2k with:
Public Function MakeProc() As Boolean
Dim sSQL As String
sSQL = "CREATE PROCEDURE procGetMaxAcctID (lID LONG) AS " & _
"select fAcctID from tAccount " & _
"where fAcctID = lID;"
CurrentDb.Execute sSQL
End Function
I keep getting error 3290, "Syntax error in Create Table statement." My
first guess is that there's something wrong with my Jet 4.0
installation. I have the files on my computer, however. Is there
something special I need to do to get access to recognize these files?
I have a reference to DAO 3.6 in my db references. Thanks in advance
for any help.
Public Function MakeProc() As Boolean
Dim sSQL As String
sSQL = "CREATE PROCEDURE procGetMaxAcctID (lID LONG) AS " & _
"select fAcctID from tAccount " & _
"where fAcctID = lID;"
CurrentDb.Execute sSQL
End Function
I keep getting error 3290, "Syntax error in Create Table statement." My
first guess is that there's something wrong with my Jet 4.0
installation. I have the files on my computer, however. Is there
something special I need to do to get access to recognize these files?
I have a reference to DAO 3.6 in my db references. Thanks in advance
for any help.