B
BillyRogers
I have two questions
1. I'm trying to call a stored procedure from access and return the results
in a recordset. How do i do this?
2. Also, In SQL server I use a single quote to begin a comma separated list
of account numbers and use a single quote to end the list that is passed as a
variable. Do I just replace the Single quote with double quotes? otherwise
access treats is like a comment.
here's what i have so far
Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset
cnn.Open "Provider=SQLOLEDB;data source=SQL10;" & _
"database=Ext;Trusted_Connection=yes;"
'**** how do I get this stored procedure into a recordset?????
' *** and do I use double quotes? to replace the single quotes in sql server?
' **note: i'm trying to pass a single comma separated string as a parameter
cnn.GetAssocEquipment "1619986,1619995"
--
Billy Rogers
Dallas,TX
Currently Using Office 2000 and Office 2003
1. I'm trying to call a stored procedure from access and return the results
in a recordset. How do i do this?
2. Also, In SQL server I use a single quote to begin a comma separated list
of account numbers and use a single quote to end the list that is passed as a
variable. Do I just replace the Single quote with double quotes? otherwise
access treats is like a comment.
here's what i have so far
Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset
cnn.Open "Provider=SQLOLEDB;data source=SQL10;" & _
"database=Ext;Trusted_Connection=yes;"
'**** how do I get this stored procedure into a recordset?????
' *** and do I use double quotes? to replace the single quotes in sql server?
' **note: i'm trying to pass a single comma separated string as a parameter
cnn.GetAssocEquipment "1619986,1619995"
--
Billy Rogers
Dallas,TX
Currently Using Office 2000 and Office 2003