[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1231
  • Last Modified:

Export to Excel From Access - File Error. Number Formats Lost

Hello.

I'm using a macro to export data from an Access query to Excel.  It works fine but when I open the Excel File I get a dialog that says "File Error.  Some number formats may have been lost."

If I click OK everything looks as it should but this is an annoyance I'd like to do away with.  I've tried saving to .xls and .xlsx with no difference.

Any Ideas how I can fix this (from within Access preferably)?  

Thanks!
0
ttist25
Asked:
ttist25
  • 5
  • 5
  • 2
  • +1
3 Solutions
 
Richard DanekeTrainerCommented:
Please help us by providing version numbers.  2010, 2007, 2003 ?
0
 
Richard DanekeTrainerCommented:
Which Macro action do you use to create the Excel file?   Are you using a template?
0
 
Jeffrey CoachmanMIS LiasonCommented:
Yes, and also post a sample of the resulting Excel file.

Sometimes these warnings are precautionary...
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Jeffrey CoachmanMIS LiasonCommented:
...and not really indicative of any real issue with the file
0
 
ttist25Author Commented:
Sorry - I'm using Access and Excel 2007.  I have tried saving to xls or xlsx with the same result.  

The macro I'm using has the following properties:
Object type: Query
ObjectName: MyQueryName
Output Format: Excel 97 - Excel 2003 Workbook (*.xls)
AutoStart: yes
OutputQuality: Screen

I am not using a template.  And you are correct, there's nothing wrong with the data in the file but I'd like to not have the dialog box pop up.  It makes it look broken :)

Thanks for your help!
0
 
hello_everybodyCommented:
0
 
ttist25Author Commented:
Hi HE

That is what I'm dealing with and I had looked at that solution before posting.  I was hoping for something more graceful but I'm not finding much.  

Any other ideas?
0
 
Jeffrey CoachmanMIS LiasonCommented:
So will you be posting a sample file as I requested?
Yes or no?
0
 
ttist25Author Commented:
Hi Boag,

Thanks for your offer to help.  I don't want to seem ungrateful but, I'm concerned about posting the file.  I hope you understand.  

Is there something specific you would be looking for that I might be able to check?

0
 
Jeffrey CoachmanMIS LiasonCommented:
All we would need is a file that generates the same error.

So you can use the same file and obfuscate the data...
Or create a junk table and query and export that...

...as long as it generates the same error when opened in Excel...
0
 
ttist25Author Commented:
Hi guys,

I've been trying to get a file that will do the same thing but as soon as I change it to obfuscate the data it stops throwing the error.  It's kind of strange.  If I crate the Excel file from the macro in Access it opens up and I get the error.  If I close the spreadsheet and then open it back up again, I get the same error.  

But, if I click the save button in Excel without modifying any of the data and then open it back up again I don't get the error.  
0
 
Jeffrey CoachmanMIS LiasonCommented:
Then obfuscate the source data (the input) ...
Then you should get obfuscated data, that generates the error..., right?...
0
 
ttist25Author Commented:
Thanks guys.  Sorry for taking so long to close this.  It wasn't really resolved but HelloEverbody's solution would likely have fixed it.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 5
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now