Access TransferSpreadsheet Excel - Prevent Duplicates? -


i working on application there desire automate data entry as possible. wish add button such entry forms choosing excel file import. have done 1 interface, , i'm working on others. i'm looking best way prevent duplicates imported table. 1 working on now, simple 2 column import. 1 method have used before import spreadsheet temp table. can utilize query insert <> . wonder if best method use.

any thoughts?

thanks!

something should work. can tailor more if list more details of projects.

from "external data" on ribbon, link excel file.

then write following query:

insert table1 (  field1,  field2 ) select  a.field1,  a.field2 tableexcel  left join table1 b on a.field1 = b.field1 (((a.field1) null)); 

then attach macro button running query above.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -