Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ODBC Linked Table Problem

Posted on 2004-09-03
4
Medium Priority
?
355 Views
Last Modified: 2008-02-01
I have an Access Database that has a linked table to an ODBC data source.  The table has a field called RTCOST which is a Decimal field with a Precision of 9 and a Scale of 3, Decimal Places are set to Auto.

I can list the contents of the table but If I try to create a Make table query i.e take the contents of the linked table and dump it into an Access local table I get a Access error message which says : The decimal fields precision is too small to accept the numeric you attempted to add.

I've told the company who administer the database where the linked table comes from but they insist its correct.

Can anyone suggest a workaround
0
Comment
Question by:Northumberland
4 Comments
 
LVL 7

Expert Comment

by:Navicerts
ID: 11972263
Linking it to FoxPro?
0
 
LVL 52

Expert Comment

by:Gustav Brock
ID: 11972399
Create the table first using currency as data type for the decimal field.
The run an append query.

/gustav
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 11975312
Access chokes on Decimal field types constantly.  The only workaround I can think of would be to reformat the field to something other than Decimal (Double?), then link tables.

0
 
LVL 2

Accepted Solution

by:
PendragonZero earned 1500 total points
ID: 11975316
read it from the table as a string and convert it back to decimal
use this CDbl(Cstr([RTCOST]))
pen
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

927 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