I am using Access 2000 and SQL 2000. I am in a catch 22. I need to be able to create a file in order to send it via Email. I can do it by using the following:
DoCmd.OutputTo acOutputStoredProcedure, "spName", acFormatXLS, stFileName, False
This all works fine. However, my stored procedure has 2 parameters I need to pass. There are no parameter options with this command.
I can pass parameters to create a recordset but how do I then get the recordset to my output file.
It looks like I have to create a table (I didn't really want to do this) by the stored procedure and then do a transfer of the table to my file name.
Do anyone have any ideas how I can skip the step of creating the table?
Much appreciated. Hope I didn't confuse anyone. (It always seems clearer when you create the thread).
Thanks again in adavance
DoCmd.OutputTo acOutputStoredProcedure, "spName", acFormatXLS, stFileName, False
This all works fine. However, my stored procedure has 2 parameters I need to pass. There are no parameter options with this command.
I can pass parameters to create a recordset but how do I then get the recordset to my output file.
It looks like I have to create a table (I didn't really want to do this) by the stored procedure and then do a transfer of the table to my file name.
Do anyone have any ideas how I can skip the step of creating the table?
Much appreciated. Hope I didn't confuse anyone. (It always seems clearer when you create the thread).
Thanks again in adavance