I have 2 tables. One contains exchange distribution list names and the other contains the members.
I have been trying to export each list to its own excel spreadsheet but I dont want to create a query for each one. I have been trying to do it with a dynamic query but I can't get the following to accept it.
It works fine if the strSQL variable is the name of a real query and not a SELECT string (which is what I need it to be).
I hope that I have explained this well enough to convey what I am trying to accomplish. Thanks
I have been trying to export each list to its own excel spreadsheet but I dont want to create a query for each one. I have been trying to do it with a dynamic query but I can't get the following to accept it.
Code:
DoCmd.OutputTo acOutputQuery, strSQL, acFormatXLS, strLocalPath & objName & ".xls"
I hope that I have explained this well enough to convey what I am trying to accomplish. Thanks