D
Danu
I am using DoCmd.TransferSpreadsheet to move a file into Excel from Access.
This will be done daily so the date must be associated with the file name.
Each time I compile the module, I get a CONSTANT EXPRESSION REQUIRED error.
This is the output line:
Const OUTPUT_PATH = "P:\Reports\Daily File for " & Format(Date, "Long Date")
& ".xls".
FORMAT is highlighted after compiling. I'm new to this so it is probably
something obvious that I am doing wrong.
Please help and thank you.
This will be done daily so the date must be associated with the file name.
Each time I compile the module, I get a CONSTANT EXPRESSION REQUIRED error.
This is the output line:
Const OUTPUT_PATH = "P:\Reports\Daily File for " & Format(Date, "Long Date")
& ".xls".
FORMAT is highlighted after compiling. I'm new to this so it is probably
something obvious that I am doing wrong.
Please help and thank you.