Results 1 to 3 of 3
  1. #1
    Enrightt is offline Novice
    Windows 8 Access 2007
    Join Date
    Oct 2015
    Posts
    10

    Autofill Field Based on Another Field


    Hello All,

    I would like to have a field automatically copy the value of another after the first is entered in a form while still being adjustable, if needed.

    The first field manually entered is [Invoice_State] and the 2nd is [Item_Ship_To_State]. Since 99% of the time, the Item Ship To State will be the same as the Invoice State, I would like the 2nd field to automatically copy the manually entered [Invoice_State] to save much unnecessary data input. However, I would also like [Item_Ship_To_State] to be adjustable in the the rare cases where the two fields will be different. These two fields are located in the same table.

    Is there a way to do this?

    Thank you very much.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    You could place some code behind the form in the After Update event for the first control.
    Me.[Item_Ship_To_State].Value = Me.[Invoice_State].Value

  3. #3
    Enrightt is offline Novice
    Windows 8 Access 2007
    Join Date
    Oct 2015
    Posts
    10
    Thank you!

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

Similar Threads

  1. Autofill field based on other field
    By gwunta in forum Forms
    Replies: 1
    Last Post: 02-27-2012, 03:01 AM
  2. Replies: 5
    Last Post: 10-14-2011, 09:56 AM
  3. Autofill Field Based On Another Field
    By tcrwt in forum Forms
    Replies: 2
    Last Post: 08-17-2011, 01:21 AM
  4. Autofill of a field based on another
    By MyWebdots in forum Forms
    Replies: 7
    Last Post: 07-12-2010, 05:00 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