Hello all,
I have a macro (in access 2000 frontend talking to access 2000 backend) that is outputting a query to excel as follows:
MacroName Action
Cost-age OutputTo
Obect Type: Query
Object Name: Cost-Age
Output Format: MicrosoftExcel(*.xls)
Output File: C:\myfile.xls
Autostart: Yes
Template File:
Encoding:
Query:
SELECT [Cost-Age].[Age by Days], Format([Cost-Age].[Cost Sheet Number],"0.0") AS [Cost Sheet], Format([Cost-Age].Revenue,"$0.00") AS Revenue, Format([Cost-Age].Cost,"$0.00") AS Cost, [Cost-Age].[Invoice Printed], Format([Cost-Age].[Total File Revenue],"$0.00") AS [Total File Revenue], Format([Cost-Age].[Total File Cost],"$0.00") AS [Total File Cost]
FROM [Cost-Age]
ORDER BY [Cost-Age].[Age by Days] DESC, [Cost-Age].[Cost Sheet Number];
Query outputs to Excel, however all the number/currency fields are outputted as text and each cell has a green triangle in the left corner indicating this. If I select the fields in excel, right-click, and change the format of the fields to number or currency, the triangle still remains and I still cannot sum the cell contents.
What I would like is to output the numbers in access, as numbers in excel. Any help would be appreciated.
I have a macro (in access 2000 frontend talking to access 2000 backend) that is outputting a query to excel as follows:
MacroName Action
Cost-age OutputTo
Obect Type: Query
Object Name: Cost-Age
Output Format: MicrosoftExcel(*.xls)
Output File: C:\myfile.xls
Autostart: Yes
Template File:
Encoding:
Query:
SELECT [Cost-Age].[Age by Days], Format([Cost-Age].[Cost Sheet Number],"0.0") AS [Cost Sheet], Format([Cost-Age].Revenue,"$0.00") AS Revenue, Format([Cost-Age].Cost,"$0.00") AS Cost, [Cost-Age].[Invoice Printed], Format([Cost-Age].[Total File Revenue],"$0.00") AS [Total File Revenue], Format([Cost-Age].[Total File Cost],"$0.00") AS [Total File Cost]
FROM [Cost-Age]
ORDER BY [Cost-Age].[Age by Days] DESC, [Cost-Age].[Cost Sheet Number];
Query outputs to Excel, however all the number/currency fields are outputted as text and each cell has a green triangle in the left corner indicating this. If I select the fields in excel, right-click, and change the format of the fields to number or currency, the triangle still remains and I still cannot sum the cell contents.
What I would like is to output the numbers in access, as numbers in excel. Any help would be appreciated.