[dba-SQLServer] Moving some object's recordsource to SQL Server

Stuart McLachlan stuart at lexacorp.com.pg
Wed Jan 25 22:51:30 CST 2006


On 26 Jan 2006 at 14:47, Stuart McLachlan wrote:

> Set qry.SQL = "select * from mytable where id = " & cboIDSelector

Oops, that line is totally screwed up.

It should be:
qry.SQL = "sp_MyStoredProcedure " & cboIDSelector

i.e.  no "Set" and the SQL is the SP call




-- 
Stuart





More information about the dba-SQLServer mailing list