G
Guest
Hi,
I have an access application with an SQL server backend database. Recently
it has started throwing errors. When I investigated I found that the command
used to retrieve database information through a recordset was the problem as
below.
Dim objrs As Recordset
Set objrs = CurrentProject.Connection.Execute("exec ComplaintIdentifier_INS")
CCID = (objrs!NewCCID)
The stored procedure complaintIdentifier_INS returns returns a field
sucessfull and NewCCID. It can no longer retrieve the NewCCID field with the
code above. It returns the error "item can not be found in collection
correspondong to the request name or ordinal". I have run the stored
procedure through query analyser and it does return the correct information.
Any ideas what might be the cause?
Thanks
I have an access application with an SQL server backend database. Recently
it has started throwing errors. When I investigated I found that the command
used to retrieve database information through a recordset was the problem as
below.
Dim objrs As Recordset
Set objrs = CurrentProject.Connection.Execute("exec ComplaintIdentifier_INS")
CCID = (objrs!NewCCID)
The stored procedure complaintIdentifier_INS returns returns a field
sucessfull and NewCCID. It can no longer retrieve the NewCCID field with the
code above. It returns the error "item can not be found in collection
correspondong to the request name or ordinal". I have run the stored
procedure through query analyser and it does return the correct information.
Any ideas what might be the cause?
Thanks