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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when linking to Oracle Database

Status
Not open for further replies.

Nunina

Programmer
Mar 5, 2003
128
PR
Hi!

I get a "Cannot define field more than once" error when trying to link a table to my Access project.

I have several other tables linked, and there was no problem linking them. Does any of you know what does it mean?

Thanks in advance!

[gorgeous] Nunina
 
I've run into that before using Oracle. In that case it was because Oracle allows longer field names than Access does, and when Access performs the link, it truncates the field names and everyone once and a while truncating field names results in two fields with the same name. The fix is pretty complicated - you have to either rename the field name to something else, using Oracle SQL, or you have to get the DBA to store a view to the table with an alias field name.
 
Vbajock:

No other possible way? Your suggestion is the only one???

Thanks, anyway... [sadeyes] I know he's not going to change it... I'm linking production tables that are going to be read only anyway... hmph! Now I have a problem!

Thanks again vbajock.

[gorgeous] Nunina

P/S - Unless you have any other suggestion.... [smile]
 
It's the only way. The only other thing I can think of is that perhaps newer versions of Access have increased the field lengths they can handle. I was using Access 97 when I ran into this.
 
That should work. Are you sure you have the latest version of the Oracle ODBC driver? Here's the troubleshooting page for that:


In Windows, go to ODBC admin, click the Drivers tab and compare what you have to the page.

Or, if your using Microsoft drivers, you might want to look at this page:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top