Access report to txt file to excel

Vbanoob98

Board Regular
Joined
Sep 13, 2019
Messages
128
Hello,

I'm trying to figure out if its possible to run an Access report from inside Excel, then save it to a txt file and import the txt to excel.

Since I'm using calculated fields in the report, they appear as blank when using the export to excel in Access.

I assume I woukd have to use a subquery to get in excel but it seems very complicated

Any advice?

Thanks in advance!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I would think the proper way of doing this would be to add those calculated fields to the query serving as the data source of your report and work with the query itself.

Then you can do all the work right in Access with DoCmd.TransferText and DoCmd.TransferSpreadsheet.
 
Upvote 0
Yes, the problem is the query is way too complicated. I assume thats why they used the calculated fields in the report.

You think its viable to make an excel macro that runs the report with a parameter and saves the output to a txt file?
 
Upvote 0

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top