MS Access SQL Server

murthyspd

Registered User.
Local time
Tomorrow, 05:19
Joined
Aug 3, 2006
Messages
31
Hi,
I have written a code in MS access VBA to contact SQL Server which is remote. There is a stored procedure in SQL Server that gets executed. I wanted to create a table in MS Access with the output of this stored procedure. The stored procedure does not create a table. The reason is this : The stored procedure returns a set of information one of which is customer number. I have to look for a particular customer#. Currently I am putting the output to a recordset using

Set rsCmd1 = Cmd1.Execute
where Cmd1 is a ADODB.Command and rsCmd1 is a recordset

I am not able to use recordset.Find method . It gives error that Rowset cannot be reset and scanning the recordset using while loop is taking time. I wanted to speed up the whole process of contacting the server, get the whole bunch of info from server, find the customer and put info in text boxes.

Will creating a table speedup the process or is there any other alternative ?
 
Possibilities:
-Rewrite your stored procedure in VBA
-Let the stored procedure write in your Access DB.
-Try a combination of stored procedure with VB.

Don't ask me how.
 

Users who are viewing this thread

Back
Top Bottom