Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report to Excel Problem

Status
Not open for further replies.

bloise

Programmer
Jun 21, 2001
67
US
I am having a problem exporting an access report to excel.
I am using the following logic,
"DoCmd.OutputTo acOutputReport,,acFormatXLS"

Everything works fine except:

1. I loss the date format in one of my columns
2. My first column which contains headings are also messed up. Some of the columns are including invalid headings.

Any suggestions would be helpful..
Mike
 
Do you NEED the report in Excel? If not, you could export your report to Word or export your underlying qry to Excel.
 
Yes, the client receiving the file wants to import the data into their database. DB imports work rather well with excell. I figured out problems 2. The name of my text boxes on the report were incorrect.

I am still having a problem with the dates... Any clues??
Mike
 
Well, I found how to fix the date problem. If you call the function format$(dateVar), it solves the problem when exporting the report to excel. Thanks all for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top