Results 1 to 2 of 2
  1. #1
    bex is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    1

    Autofill + Update field simultaneously


    Hello everyone,

    This seems like it's probably an easy fix but I've spent ages fiddling and researching and just can't crack it. Any assistance would be greatly appreciated!

    What I have is two tables: Table A has one field (let's call it CustomerID). Table B has multiple fields about customer interactions (date, interaction type, etc.). What I want to do is this: have a form field that autofills the CustomerID field if that customer ID already exists and also allows the user to input a new CustomerID if it is a new customer (ergo updating Table A). The ability to have autofill activated for the subsequent record (e.g.: perform data entry on weekly basis and new customer arrived Monday then returned Wednesday) without saving the database would also be helpful.

    I have the two tables connected: the CustomerID as primary key in Table A and it is related to a CustomerID field in Table B. For the autofill criteria I have set up a combo box lookup (Display Control setting, didn't limit to list) for the Table B CustomerID field. I've experimented with referential integrity as it would be a one-to-many relationship but that consistently gives me an error at data entry. I've spent 2-3 hours researching and tooling around and am convinced that it either isn't possible or is a ridiculously easy fix. I'd be happy if it's a relatively complex fix as long as someone can explain it to me though.

    Thank you in advance for any assistance.

    B

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Check into the NotInList event of combobox. http://support.microsoft.com/kb/197526
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-20-2012, 01:02 PM
  2. Replies: 2
    Last Post: 11-14-2011, 03:17 PM
  3. Replies: 5
    Last Post: 10-14-2011, 09:56 AM
  4. Using an Update query to autofill boolean
    By Fuzzyjello in forum Queries
    Replies: 13
    Last Post: 06-09-2010, 10:27 AM
  5. Autofill field based on autonumber field
    By frevilla in forum Forms
    Replies: 1
    Last Post: 09-11-2009, 02:50 AM

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