S
Scott
Can someone point me to how to trap a return code value from a SQL
server? I have looked in Safari and in newsgroups... I must be missing
it... I see how to send the return code value:
[From SQL Server Books Online....]
CREATE PROCEDURE checkstate @param varchar(11)
AS
IF (SELECT state FROM authors WHERE au_id = @param) = 'CA'
RETURN 1
ELSE
RETURN 2
The RETURN [Value] is very clear... but I'm not finding an example of
how to read and handle the return code in VBA.
Can someone point me in the right direction?
Thanks!
server? I have looked in Safari and in newsgroups... I must be missing
it... I see how to send the return code value:
[From SQL Server Books Online....]
CREATE PROCEDURE checkstate @param varchar(11)
AS
IF (SELECT state FROM authors WHERE au_id = @param) = 'CA'
RETURN 1
ELSE
RETURN 2
The RETURN [Value] is very clear... but I'm not finding an example of
how to read and handle the return code in VBA.
Can someone point me in the right direction?
Thanks!