chthomas
asked on
export an Access query to a predefined excel file layout
How can i export an Access query to a predefined excel file layout ?
My query named Salary have the following fields.
BranchCode
Employee
Salary Date
PostCurrency
PostAmount
Narration
How can i export the contents of this query into an Excel File C:\ TEST.XLS having sheet named "Salary", starting From A3:F3?
ie Branch code value goes into A3, Employee value into B3, Salary Date into C3, PostCurrency into D3, PostAmount into E3 and Narration into F3.
I have hundreads of records in query.
Regards,
Charley
My query named Salary have the following fields.
BranchCode
Employee
Salary Date
PostCurrency
PostAmount
Narration
How can i export the contents of this query into an Excel File C:\ TEST.XLS having sheet named "Salary", starting From A3:F3?
ie Branch code value goes into A3, Employee value into B3, Salary Date into C3, PostCurrency into D3, PostAmount into E3 and Narration into F3.
I have hundreads of records in query.
Regards,
Charley
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. Exactly what i was looking for.
Regards,
Charley
Regards,
Charley
Create a macro and select TransferSpreadsheet,
Choose your table,
Set the Actions for the TransferSpreadsheet and in the Range set it to A3:F3,
Run the Macro and the required cells will be populated.