I see two real world solutions here. I am making two assumptions. One the table dbo_V_ATIExcizeExport is a linked sql table. Two you can create tables and views within this server.
- Pull dbo_V_ATIExcizeExport into the access database to leverage access slight gain in speed for working with both tables locally to the database instead of linked. Then insert into a 3rd temp table... i would call it tblTracking_Tmp where it stores only the new records then store that result in tblTracking without the where clause so that access doesnt have to iterate the entire table prior to filtering on the where clause. You really dont "Win" in this situation because you are still iterating the entire dataset with the where clause within access.
- Create a tmp table in the linked sql database with mirroring of the design to dbo_V_ATIExcizeExport. upload tblTracking into a tmp SQL table. create a view that performs the filter server side. link to that view and insert that view into your local tblTracking table.





by: calpurniaPosted on 2009-10-06 at 15:14:56ID: 25510494
I'm not sure if this will help, but if you set the Invoice_No field in tblTracking to Indexed (no duplicates), Access will not append any records with duplicate Invoice_No values.