Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Append no Duplicates
Willem 

14 years ago
Hi Richard, Can you tell how or where I can find out the following. I need to import a XLS price-list weekly and it needs to add all the new products not in the ProductT and update the prices as per the XLS. How do i Prevent it form making duplicates when appending the ProductT.

I want to make it easy, Safe the XLS file in a specific folder and press the import button in Access program



Reply from Richard Rost:

I'm actually going to cover this in a short seminar I have coming up on importing BANK STATEMENT DATA into an Access database. The same concept applies: you download the statement from your bank's web site, check to see if that transaction is in the table or not (unique transaction ID) and if not, append it. Maybe

I would use a RECORDSET for this. In your case, the logic would be:

1. Import (or link to) the XLS file
2. Read in a record (row)
3. DLOOKUP to see if that ID is in your table
4. If it IS, then UPDATE the price and date/time
5. if it is NOT, then APPEND the record
6. goto 2

I'll add this example to the seminar too, because with a bank statement you wouldn't be UPDATING any of the records, just adding ones that aren't in there.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 8:15:43 PM. PLT: 1s