B
Bob Barnes
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"TheQueryName", N, "Sheet1"
Where "N" is a concatenated Excel Filename.
I would like to get "TheQueryName" ONLY from a string I write, since there
will be many "variable" Queries determined by any of 15 True/False Fields
being True (only ONE of them being True)...I have no problem writing the
String of the SQL..Can that string be "substituted" for the Query Name
argument, IE, "TheQueryName"???
TIA - Bob
"TheQueryName", N, "Sheet1"
Where "N" is a concatenated Excel Filename.
I would like to get "TheQueryName" ONLY from a string I write, since there
will be many "variable" Queries determined by any of 15 True/False Fields
being True (only ONE of them being True)...I have no problem writing the
String of the SQL..Can that string be "substituted" for the Query Name
argument, IE, "TheQueryName"???
TIA - Bob