Solved

Access Import Rounding Issue

Posted on 2013-01-17
6
375 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Independent Software Vendors: 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!

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

705 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