Exporting Access Table into Excel Number Difficulty

laserluv

New Member
Joined
Apr 30, 2002
Messages
11
I am working with a data file in Access that is giving me difficulties when I try to export the file. There is a column, imported as text that has both alpha and numeric characters.

Example:
456879E5651

When it exports to excel, it gets transposed to scientific notation
456879+001E (etc...)

How can I export my 18000 row table to recognize the column as true text? The file was originally imported as a CSV file, and can be queried by using the actual invoice number, with the mixed characters.

Any help would be appreciated!

LL
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
How are you doing the export ?

Easy way if you are able is to add a single quote (') to the start of your column, this tells excel to treat the value as text - the quote itself is not displayed.

HTH

Chris
 
Upvote 0
How do you recommend I add the single quote? I have tried to do it after it is exported to Excel, but it leaves the column in Scientific notation. Do I need to create a query in Access to accommodate, and add the apostrophe?

Thanks-
LL
 
Upvote 0
I have this problem often.

Prior to the newer versions of Office, one had to make an excel file before exporting and format the conditions of the cells as wanted.

I have the opposite problem in which I want to remove the ' apostrophe, which I just found on thread. But for your instance, what happens when you select and format the column as text prior?
 
Upvote 0
Going to assume you're probably using:

DoCmd.TransferSpreadsheet

I'd suggest taking the SQL approach.

UPDATE tblName Set field1="'" & [field1]
WHERE Left([field1],1)<>"'"

Simple check - if the first character of the field is already an ' then don't do it, if it isn't, then add it.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,811
Messages
6,162,109
Members
451,743
Latest member
matt3388

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