Solved

Problems with DECIMALS WHILE IMPORTING ORACLE TABLES

Posted on 2001-08-20
12
487 Views
Last Modified: 2012-08-13
This is the problem:

I need to import Oracle 8.0.5 tables in an Access 2000 database. Some fields in the tables are defined NUMBER 16,8. When I try to import the tables, a message box appears telling me that there is a decimal problems. (If I try to attach the tables, the problem appears too.)

Note: the problem doesn't appear  with Access 1997 and the importation works perfectly.

Could you be of any help?
0
Comment
Question by:her7
  • 3
  • 2
  • 2
  • +4
12 Comments
 
LVL 6

Expert Comment

by:PsychoDazey
Comment Utility
What number is the error message?
0
 
LVL 6

Expert Comment

by:PsychoDazey
Comment Utility
0
 

Author Comment

by:her7
Comment Utility
There is no message number in the dialog box except this information :

"The precision of the decimal field is too small to accept the value you try to add".
Also, there are an OK button and a HELP button, but help is not available.

I try to install Oracle version 8.1.7, but the problem always appears.
0
 
LVL 1

Expert Comment

by:LogicalMan
Comment Utility
her7,

  I have found a similar problem when importing currency details from a csv file. My way round this was to link to the import file (table, spreadsheet etc), read the items in as a variant then convert them before writing them to a local table.

HTH

Tony
0
 

Author Comment

by:her7
Comment Utility
LogicalMan ...

Could you be more explicit ... please!
0
 

Author Comment

by:her7
Comment Utility
Also,  when I try to link to the import file, all the fields contain "#ERROR".
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Expert Comment

by:Koka
Comment Utility
I guess it's you ODBC driver problem - try changing it. To my experience, with Oracle 7 I had problems with Oracle diver, while with Oracle 8 with the microsoft one.

If that's one-time task You could also try to import data as string and convert it to numbers in Access (say, create View in oracle with that Number(16,8) field converted to varchar2 and import that view).
Good luck
0
 
LVL 30

Expert Comment

by:hnasr
Comment Utility
Could be a relevant question:
Question: Oracle numeric primary key showing as text in A/97
http://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=20153726

This was my comment:
From: hnasr

I am away from my Oracle to try. But I guess the NUMBER(16) format has no Integer equivalent in Access,
and hence it is translated to TEXT field.
---
The problem could be in the accuracy of the linked oracle table fields.
0
 
LVL 2

Expert Comment

by:hotbudare
Comment Utility
Have u tried using the Decimal data type?

HTH/EQTA
T.S.U. Mario Osorio
Punto Fijo, falcon, Venezuela
0
 
LVL 7

Expert Comment

by:Nosterdamus
Comment Utility
Hi her7,

Here are links to Oracle ODBC drivers. I suggest that you try to install the latest (for your version) and try again:

1. Oracle ODBC Drivers
http://otn.oracle.com/software/utilities/software_index.htm

2. Oracle Rdb ODBC Drivers
To download these drivers you have to be a member. Membership is free, so you should not have any problem downloading it once you sign up.

Hope this helps,

Nosterdamus
0
 
LVL 1

Accepted Solution

by:
LogicalMan earned 300 total points
Comment Utility
Her 7,

  The drivers you want should be in the MDAC 2.5 driver file available from Micrisoft.com - Downloads (Free download).

  Concerning my previous answer regarding importing. I link the external table, leaving all data types of the linked table to default.
I then open a recordset, in code, to this table, and raed in each field as a variant variable type, and then convert this into the correct variable type (e.g. Date/Time, Integer, String, Double, Long, etc, etc), before writing it out to the local table.
 This has two benefits::
1. You keep control over the data being entered into your local table, and
2. You can convert any dubious data types as you wish.

HTH

Tony
0
 
LVL 2

Expert Comment

by:hotbudare
Comment Utility
??
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
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 …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now