Thanks Calvin, Pat is right. I've already tried it without any luck.
Pat, this thread is really a continuation of my 'Access to Oracle' thread burried under a ton of threads now.
The dBase file has data from a spectograph (to analyse concentrations of different metal alloys). The software delivered eith the spectograph has different output formats, but I think dBase was the best one if I remember correctly. I'll check this.
I can't import to Access, make structure changes/indexes and export back afterwards, because this corrupts the data on new analysis.
I might have found a solution. I import the dBase table structure to an Access table, made the field I want to be a primary key. I run an 'add records query' which adds the new analysis data to the Access table. The 'key field' in the dBase table is a text string. I convert this with Trim and Clng in the query. This is how far I've gotten today. I now only hope I can trap the error when a duplicate 'primary key' occur? I'll use VBA since I feel this gives me more control. Please comment if this will/will not work.
Thanks for the help
I can't retire the dBase app (but I would love to) since this is built into the analysis software which I don't control of course.