Hi, From a MS Access97 db i am attempting to write a function that will run a SQL 2000 stored procedure(SP). As part of the function, i need to add some selection criteria that will be used at the point the SP is executed.
I have defined the ODBC settings and tested these ok along with the selection citeria of Date / DepotID / ContractID
How do i call / execute the SP to make a local table of the results whilst also apply the selection criteria?
An example of one of my attempts is below;
At this current time, the above code appears to run without error but no records are returned - as if it hasn't run at all.
Thanks inadvance
I have defined the ODBC settings and tested these ok along with the selection citeria of Date / DepotID / ContractID
How do i call / execute the SP to make a local table of the results whilst also apply the selection criteria?
An example of one of my attempts is below;
Code:
DoCmd.Execute "SELECT SPNAME.* INTO " _ & "[LocalTableName] WHERE DeliveryDate = 'datDeliveryDate' & DepotID = 'DepotID' & ContractID = 'ContractID'"
Thanks inadvance
Comment