Vba code delete duplicated records

kanelones

Board Regular
Joined
Aug 25, 2010
Messages
103
Hi!

Can you help me to avoid duplicated records on importation from excel to acces?

Need to add a VBA code line in order to do so..

Thanks a lot for you invaluable help.!

Regards
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If you set the Primary Key fields on your table, it will not allow duplicate records to be imported, and automatically block them from being imported without any need for any special code.

Alternatively, if the records are Excel are truly duplicates (where every field is the same), it would be even easier to use Excel's built-in "Remove Duplicates" functionality before importing.
 
Last edited:
Upvote 0
Thanks! I'm new with Acces.
Can you please explain it to me,? where do i find this "Primary Key Fields"?
 
Upvote 0
Thanks! I'm new with Acces.
Can you please explain it to me,? where do i find this "Primary Key Fields"?
Already saw that, Thanks a lot!
So, are you saying that you are all set, or are you still in need of something?
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top