Access report to txt file to excel

Vbanoob98

Board Regular
Joined
Sep 13, 2019
Messages
118
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!
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

JonXL

Active Member
Joined
Feb 5, 2018
Messages
439
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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.
 

Vbanoob98

Board Regular
Joined
Sep 13, 2019
Messages
118
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,126,901
Messages
5,621,564
Members
415,846
Latest member
Jrider1

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
Top