Run-time error '2580'

cliftonx

Registered User.
Local time
Today, 07:01
Joined
Mar 4, 2010
Messages
27
Hello,

I'm simply trying to change the record source on a form. I'm using SQL Server as the backend. I'm assigning the record source to a stored procedure named: " "spDevsWithPartsSpec" plus passing along the parameter; "Forms!frmiimain.cboJobNumber". I'm getting the following run-time error 2580:

1656347756105.png


Here is the code that is being executed:

1656347860123.png


Thanks, for your resolutions in advance.
Clifton
 
Hi. newrs has to be declared as a recordset object. You declared rs but did not use it. You could try just using rs and get rid of newrs.

Hope that helps...
 
perhaps try

set me.recordset=qf.openrecordset
 
Can a recordsource have spaces in it? :unsure:
 
the OP is creating a passthrough query, calling a stored procedure with a parameter. Not sure if treating a number as text would have an impact
 
If it is an Integer data type then you'll get an error returned by SQL server.
It should be

sp_DevsWithPartsSpec 19050
 

Users who are viewing this thread

Back
Top Bottom