Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data from Oracle table is changed in linked table.

Status
Not open for further replies.

vinhngu

Programmer
Oct 24, 2002
3
US
Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. My goal is that I want to get data from Oracle DB and produce report in Access 2003.

Here is the problem:
In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then from Access I linked with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?

For example:
Comp_ID in Oralce is defined as NUMBER(22,0) = 40000000000324003; In Access it looks like this 4.0000000000324E+16. Access is interpreting this number as DOUBLE and display as an scientific number.

NOTE:
Even though, in Access, I see a scientific number in linked table, but Access actually recognize the number as a whole number, 'cuz when I run a "select" query against a linked table with criteria of comp_id = 40000000000324003, it returns the correct result. However, if I create make-table query, the number in "native" Access table is changed to 40000000000324000.

What I have in my system:
1- Oracle 9.2 client
2- Oracle 9.2 driver
3- Access 2003
4- Jet - SP 8

Thanks

VN
 
Can someone please help me to resolve this issue. Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top