Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Import Possible to Extract Date Assign to Row
Monica Davis 
     
14 months ago
Daily get three excel files with rows of data from prior day.  These are reports generated by a 3rd party phone software.  We have no ability to get custom report or edit the existing Excel reports on front end.  Excel file has following two rows at top and detailed columns with data below.

Is there a way with VBA code to extract the Starting and Ending Date/Time data during import into Access and assign it to each detail row?

       Col A      
Row 1: Generated on July 31, 2025 6:15:00 AM CDT by CUIC\administrator (40 records).        
Row 2: Filter Logged in User: ; Interval [Starting At]: 07/30/2025 00:00:00; Interval [Ending At]: 07/30/2025 23:59:59; CSQ Names: 4MEAL, 4MEAL_PCT;      

Below the above report information in Excel is the details by column. These import just fine. Row 5 is headers and Row 6 down is the details that load into table.
       col a    col b     col c                 col d           col e           col f                   col g
Row 5: CSQ NameCSQ ID  Calls Handled  Talk TimeWork TimeTotal Ring Time  Calls On Hold
Richard Rost  @Reply  
          
14 months ago
Absolutely, I would just import the data into a temporary table and then delete whatever rows you don't need. Whatever's left, you just clean up and put into the proper table wherever you need it.
Richard Rost  @Reply  
          
14 months ago
Thomas Gonder  @Reply  
       
14 months ago
Richard Have you seen a way with Access VBA to take an Excel file, and either read it in native format to get a row, or open and export the file as a tab delimited file (again from Access VBA), which can then be imported into an Access table?
Richard Rost  @Reply  
          
14 months ago
I haven't done that specifically, but I'm sure it can be done. Access can control Excel directly with VBA automation.
Thomas Gonder  @Reply  
       
13 months ago
These are my time-tested steps to import files (into my old db system). Most was in menus, sometimes several steps in one menu option.
1. Get the import file (either I get it with 1/2" tape, FTP or a client sent it usually with email) and store in my import history folder in a Windows PC specific to a client (my customer). This file is never modified.
2. Upload the client's file to my database computer, specific account for a client and the general table for the raw data.
3. Read the raw data file, parse it and store the data into a predefined format for the table I'm importing to.
4. Program checks the data for errors (like referential integrity, obvious bad data {i.e. USA zip code for Canadian customer}) and if no errors, imports the data into my production table.
5. Error report is sent to the client for data that had anomalies (maybe a sales record for a customer we didn't get data on).
6. Client resends corrected data or says forget about the errors.
7. Rinse, wash and repeat.

It's going to get more complicated now that I'm going to store address and communications data in properly related tables (i.e. the address isn't stored directly in the customer record). If there is a slight change to an address, rather than just storing it in the customer record {it's the client's problem}, I'll have to manually determine if it's a proper modification to an address that could affect dozens or hundreds of other related records, or some new address.

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

Next Unseen

 
 
What's This?

 

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: 9/3/2026 10:21:27 AM. PLT: 1s