Results 1 to 5 of 5
  1. #1
    marksnwv is offline Novice
    Windows 7 64bit Access 2002
    Join Date
    Jun 2011
    Posts
    9

    When name is entered in the Name field of the form I want the location to populate


    I have a form called TaskCountSummary used by employess to log the work they complete each day. On this form they enter or choose their name from a combo box which contains their name and ID. The name and ID are validated by a table call Staff List. The information from the form is saved to a table called AllReportData2012. Once they enter their name I would like the location box to automatically poulate with the employees location. The employees location is part of each record on the Staff list table. I could use some help on how this should be accomplished. Thanks
    Click image for larger version. 

Name:	TaskCountSummary Form.jpg 
Views:	6 
Size:	82.3 KB 
ID:	7397 Click image for larger version. 

Name:	Staff list.jpg 
Views:	6 
Size:	63.6 KB 
ID:	7399
    Attached Thumbnails Attached Thumbnails Staff list.jpg  

  2. #2
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    are all employee names in the combo box?

  3. #3
    mejia.j88 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    california
    Posts
    228
    Check out post 13, i think this is what you are looking for:

    https://www.accessforums.net/showthr...762#post114762

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Is this what you're after?

    BaldyWeb - Autofill
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The record source for the combo box should include the location field. In the after update event, push the location from the combo box into control. See http://access.mvps.org/access/forms/frm0009.htm

    BTW, having the first name and the last name in the same field is a violation of the normalization rules. The normalization police won't come for you, but it is easier to combine the first and last names than to split them. Also, "Name" is a reserved word and shouldn't be used as an object name. See http://allenbrowne.com/AppIssueBadWord.html

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

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2011, 02:33 PM
  2. Auto populate a field (without a form)
    By DonL in forum Access
    Replies: 1
    Last Post: 06-21-2011, 03:19 AM
  3. Replies: 2
    Last Post: 10-19-2010, 11:05 AM
  4. Replies: 3
    Last Post: 10-05-2009, 07:22 AM
  5. Replies: 2
    Last Post: 05-22-2009, 01:07 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