Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Export Access Tables as Excel

Posted on 2014-03-10
4
335 Views
Last Modified: 2014-03-12
When I export an Access Table as an Excel Spreadsheet, if the data has "checkbox" type data, it outputs the words "TRUE" and "FALSE" as the data.

Is there a way I can make it do 0 & 1 instead?

Thanks
0
Comment
Question by:Richard Korts
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Michael Dyer
ID: 39919065
If you are running an export query, you may be able to add some code to replace true with 1 and false with 0.  Otherwise, you can highlight that column in Excel and do a simple search and replace to convert True to 1 and False to 0.
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39919946
Yes, don't export the table but a query:

Select Field1, Field2, Abs(CheckFieldA) As NumField1, Abs(CheckFieldB) As NumField2
Form tblYourTable

Of course, replace field and table names with those of yours.

/gustav
0
 

Author Closing Comment

by:Richard Korts
ID: 39920464
Ah, yes.

Thanks
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 39923148
You are welcome!

/gustav
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question