Skip, this is WAAAY out of my area of knowledge, but would that not assume the format structure is IN the recordset?
Is that a safe assumption here?
bwlep, as stated, this is way out of my area, but is not a SQL statement essentially a request for data, given as a string? So how that data is displayed in the requesting application is either:
1. formatted by elements of the data (Skip's copyfromrecordset)
2. or not formatted. In which case the formatting is a function of the receiving application.
If it is #2, then the formatting instructions are executed instructions of the receiving application, and not the SQL statement.
"Can I format in VBA before exporting to worksheet?"
Both PHV and CluLessChris suggestions are independent of the SQL statement. However, they could run before it (your question is answered Yes), or after (your question is answered No).
If Skip's suggestion works for you, then your question is moot, as there would no no formatting actually done by VBA instructions. The format would be passed, kind of like a parameter. I guess more properly, the format would be a property.
faq219-2884
Gerry
My paintings and sculpture