R
Ron M
Hi all
for an ODBC stored procedure I am trying to execute from
Access 2003, i have this line of code
Set Rs1 = Conn1.Execute("exec dbo.Purge_tempTable", 1,
adCmdText)
When I realized I had to execute several procedures, it
made sense to just create the whole code a function
called 'execProc(myProc as string)' and pass the
procedure names (in the example above =
dbo.Purge_tempTable) as myProc. The problem is my code
ends up with a line like
Set Rs1 = Conn1.Execute('exec dbo.Purge_tempTable', 1,
adCmdText)
OR
Set Rs1 = Conn1.Execute(exec dbo.Purge_tempTable, 1,
adCmdText)
which obviously will both give me syntax errors.
How do I then make sure that the double quotes are
included in the variable and force the Jet engine to
believe they are double quotes?
Thanks for anyones help in advance.
cheers
Ron M
for an ODBC stored procedure I am trying to execute from
Access 2003, i have this line of code
Set Rs1 = Conn1.Execute("exec dbo.Purge_tempTable", 1,
adCmdText)
When I realized I had to execute several procedures, it
made sense to just create the whole code a function
called 'execProc(myProc as string)' and pass the
procedure names (in the example above =
dbo.Purge_tempTable) as myProc. The problem is my code
ends up with a line like
Set Rs1 = Conn1.Execute('exec dbo.Purge_tempTable', 1,
adCmdText)
OR
Set Rs1 = Conn1.Execute(exec dbo.Purge_tempTable, 1,
adCmdText)
which obviously will both give me syntax errors.
How do I then make sure that the double quotes are
included in the variable and force the Jet engine to
believe they are double quotes?
Thanks for anyones help in advance.
cheers
Ron M