Results 1 to 8 of 8
  1. #1
    dcorleto is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    10

    customer form with notes from a linked table

    I have a table customers that is created from a linked excel file.
    (Last, First, FullName, email, phone)


    This xls updates nightly, so every day the table might have different information:
    1. New customers added
    2. Old customers deleted
    3. Edited information within

    The file does have a unique field which is the customer email address.
    My goal is create something, either a related table or form (not sure what is the right thing do to here) so that I can input additional information about each customer (e.g., notes, start date, department, location) and be able to view/edit that information on a form. I will not need to change any of the xls information, just the extra fields that I want to edit.
    What is the best practice for attempting this, and many thanks in advance to anyone who can help -

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    The email is the only unique identifier? People tend to change emails. Why aren't customers assigned a unique ID (CustomerNum) and documented on the Excel?

    Yes, use related tables. What about the deleted customers? Do you want to delete all the related records? Shouldn't you import the customer records to Access table for permanent retention?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    dcorleto is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    10
    First thank you so much for your reply - yes the email is the only unique field, though it will not chane. While the customers have an ID, they do not appear on the Excel report. I do not want to delete the old customers. I imagine the records should be imported, but how would they get updated thereafter? Are you suggesting that the linked files get an update query each time Access is run and if so, how would I then go about adding the extra fields for input such as notes, etc?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    Use a find unmatched query to identify records in the Excel not yet in the Access table and then APPEND those records. Use an UPDATE query to edit the existing records.

    The 'extra' fields can be in the same table unless you want 1 to many relationships (many NOTE records for each customer). Suggest you input the CustomerID and use that as the pk/fk link to any child tables.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    dcorleto is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    10
    Thank you very much for the reply. I would not need many Note Records, just one. So then I would run these queries that you suggest at each startup?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    Run the sql actions when you see fit. Can be when the db first opens (code behind default open form or maybe an autoexec macro) or with button click event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    dcorleto is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    10
    stuck now on the append part.. I have found the non-matching records and saved that as a query - I now create an Append Query, but when I run it, it wants to import 2000 records instead of only the 17 unmatched - any ideas??

  8. #8
    dcorleto is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    10
    I got it - one of the excel tables has many rows of null info, so I added a not is null criteria and now I see only the 17 matching records -

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Adding Notes or Instructions to a Form
    By freddawson in forum Forms
    Replies: 1
    Last Post: 01-12-2012, 01:59 PM
  2. Replies: 1
    Last Post: 12-24-2011, 08:48 AM
  3. Linked table Query based form
    By sesproul in forum Forms
    Replies: 1
    Last Post: 01-21-2010, 08:46 PM
  4. Replies: 1
    Last Post: 08-19-2009, 01:14 AM
  5. Import Lotus Notes address book into a MS Access table.
    By acheo in forum Import/Export Data
    Replies: 0
    Last Post: 02-19-2007, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums