Results 1 to 4 of 4
  1. #1
    kdbailey is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    228

    Data Entry Form - Adjusting Other Fields

    I am building a data entry form. One of the fields is for employee name. Based on who you select, another field titled "Team" also is adjusted based upon which team that employee is on.



    For instance...

    The current record shows Employee John Doe, team Shop Floor.

    If I change employee to Steve Adams, I want team to change to Finance.

    The form is "Report style" as in that Default View is set to "Continuous Forms", so more if there are 10 records, all 10 records will show.

    How do I adjust a separate field within the same record that is being adjusted currently?

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Few ways to do it. I usually add the 2nd field into the combo box so that first combo box will search on the name but also include the Shop Floor as a 2nd field. Or if you do not want to show it in the combo box, you can set the wideth of that field to 0 so it will still be in the combo box but will not show in the list. Then in the AfterUPdate of the combo box, you move the Shop Floor value to the other field:

    Me.Team = Me.Employee.column(1)

  3. #3
    kdbailey is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    228
    Issue resolved.

    By changing the textbox value for "Team", it automatically recognizes which record you currently are one. It only changes the one textbox - changing the value within the record.

  4. #4
    kdbailey is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    228
    On the same topic, is there a way to scan through the other records?

    This is a project management form in which I am displaying the team. I only want one Owner which is the first field "Role". If I change the Role field to "Owner" on one record, can it scan through the other records and change them to "Participant"?

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

Similar Threads

  1. Replies: 7
    Last Post: 10-13-2016, 12:32 PM
  2. Replies: 4
    Last Post: 12-21-2015, 10:57 PM
  3. Data Entry form with prepopulated fields
    By zmbaker in forum Forms
    Replies: 1
    Last Post: 07-25-2014, 11:42 AM
  4. Sequence of data entry fields in a form
    By Academia in forum Forms
    Replies: 2
    Last Post: 08-01-2013, 08:06 AM
  5. Replies: 7
    Last Post: 11-02-2012, 12:05 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