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 Query or VBA
Jerry Fowler 
       
3 years ago
I have a Database I have created and monthly I receive an Excel file with all my current members. Every so often I find a member that either transferred from somewhere else or is new.

I'm trying to figure out if it would be better to create a set of APPEND Queries or Write code to Append the Tables with the new data.

Do you happen to have a video on doing and APPend or INSERT using VBA?
Kevin Robertson  @Reply  
           
3 years ago
Access SQL Seminar Part 2 covers Action Queries
Richard Rost  @Reply  
          
3 years ago
I'd need to know a lot more about the data in order to tell you exactly how to handle it. Your question is kinda vague.
Jerry Fowler OP  @Reply  
       
3 years ago
Rick, I receive an Excel file every month via download from an external cloud service.  There is one record per member, with a mixture of data types such as short text, currency, and dates.  The data is Name broken out, address, city, state, zip, and Demographics such as age, length of membership, parish, phone number, and email address. Fraternal data such as Ordained, dates of initiations, and places of service.
In building the Access database to handle the data on my side and processes I wanted to automate I ended up breaking the member's info into 5 tables, MembershipT, FraternalT, PhoneT, EmailT, and your HelperT for all the onesie twosie tables into one.

So now comes the Excel file from Supreme and up till now I have been hand-entering the member's data into the tables and find it very time-consuming.  So following along with your TechHelp videos on finding new data or changes to tables and using Append or Change queries to sync the data.  So right now I import the Excel file into a temp table and want to parse the data out to the tables.  The one piece of data that links them all is the MemID which is a short text field.

I hope this helps more than blurs things.  With your classes and Techhelp Videos, I feel I have come a long way in just 2 years, all thanks to your teaching style and the people that back you up.
Jerry Fowler OP  @Reply  
       
3 years ago
Now back to the original question.  I'm wondering your thoughts on which might be easier or better to set up Append Queries for the table (Which I have started) or using APPEND into TableXYZ... (which I have also started).  I'm thinking of the queries, but wonder how to write the VBA code to run the 5 queries depending on if there is data in the Temp table to go into each Table. Possibly If then statements?
Kevin Robertson  @Reply  
           
3 years ago
Richard Rost  @Reply  
          
3 years ago
If your MemID links them all, then I would save that in each table (in addition to your autonumber PK). Then you wouldn't need VBA code to simply update records. Use update queries to update existing records and append queries to add new ones. If the MemID is indexed (no duplicates) then it will automatically disregard adding the same user twice.
Jerry Fowler OP  @Reply  
       
3 years ago
Thanks, Richard and Kevin your responses are always fresh and very helpful.
Kevin Yip  @Reply  
     
3 years ago
One thing to consider is whether your Excel data may contain any erroneous information, and if so, how to catch it.  If you have "123 Any Street Apt A1" as an address in your Access table, and the incoming Excel file has only "123 Any Street" for that same person, missing the apartment number.  Obviously in such a case you don't want to overwrite your existing data with it.  So how do you check for things like this?  Can you count on whoever gives you the Excel file to always give you accurate data?  Even if they say yes, how far will you assume their data will always be correct, without doing any checking at your end?  These are the things that would be on my mind if I received any external data from anyone, especially data that are to replace and/or add to my existing data.  If these data involve hundreds (or more) rows every time, this can become a formidable task.
Richard Rost  @Reply  
          
3 years ago
I spend a lot of time in Access Expert 14 and again in Access Developer 21 on "scrubbing" data.

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: 4/30/2026 1:49:36 PM. PLT: 0s