Solved

Access Import Rounding Issue

Posted on 2013-01-17
6
374 Views
Last Modified: 2013-01-22
I'm importing an excel spreadsheet into an access table and seeing a rounding issue.
The Excel sheet is formatted as a currency and has a value like $ 43.16.
I don't see any additional digits in the cell.
When it imports into the access table field which is a double it comes out as 43.1599.
How can I force the correct amount into the double field?
0
Comment
Question by:stopher2475
[X]
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
  • 3
  • 2
6 Comments
 
LVL 26

Expert Comment

by:jerryb30
ID: 38788253
if you format it as a number in excel, what does it look like?
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 400 total points
ID: 38788255
Try changing the format in Excel to increase the number of visible decimal places.  I suspect you will see the same as you see in Access.
0
 
LVL 2

Author Comment

by:stopher2475
ID: 38788283
I did try that. It will look like  43.16.
Maybe I should try formatting the column as a number anyway before importing?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Accepted Solution

by:
stopher2475 earned 0 total points
ID: 38788304
So I tried formatting to "General" before importing and that seems to have fixed the issue.
Weird that Access will import them differently. There are no extra digits in the Excel file.
0
 
LVL 26

Assisted Solution

by:jerryb30
jerryb30 earned 100 total points
ID: 38788358
It is weird, but binary fractions can be problematic. I am not sure that Access and Excel do things exactly the same way.  Going from a (presumed) currency data type to a double might have caused the issue.
0
 
LVL 2

Author Closing Comment

by:stopher2475
ID: 38804800
Selected my comment because it contains the method to solve the problem.
Experts were on the right track. Splitting points between the most relevant.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

737 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