Results 1 to 4 of 4
  1. #1
    preveo is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2014
    Posts
    10

    Update a field based based on data entered in another field

    Hi,

    I am wanting to update data in one field which is being pulled in from another table based on an entry in another field in a form

    Attached is the database. In the sales form I want to enter a customer ID which will then pull in the customer name from the customer table and put it in the Customer Field in the sales table.



    I know I am duplicating the data by having customer name in both tables which is bad database design, but that's what I want to do for peace of mind!

    Can any-one help!?
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    preveo is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2014
    Posts
    10
    Sorry, but as a novice this makes no sense to me. Any chance you could tell me what I need to do?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    pbaldy is suggesting a multi-column combobox with the customer info. The combobox RowSource property would be a query statement. http://www.datapigtechnologies.com/f...combobox3.html

    Then expression in textbox ControlSource property can reference column of the combobox.

    This is basic Access functionality in form design and a common topic in forum.

    What specifically is not understood about pbaldy's instructions?
    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: 08-10-2014, 04:06 PM
  2. Update Field based on form value
    By Auto in forum Forms
    Replies: 4
    Last Post: 11-20-2013, 11:57 AM
  3. Replies: 10
    Last Post: 07-19-2013, 02:05 PM
  4. Replies: 2
    Last Post: 03-07-2013, 04:50 PM
  5. Replies: 1
    Last Post: 08-31-2011, 04:03 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