Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access Import Rounding Issue

Posted on 2013-01-17
6
Medium Priority
?
381 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 1600 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

610 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