Results 1 to 4 of 4
  1. #1
    jcharbula is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    5

    Auto Populate

    This one should be easy....
    How do you autopopulate a field based on the entry of another field?


    For example, if I put in a student's SS#, their name will populate in a Name Field on the form

  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,521
    One way:

    http://www.baldyweb.com/Autofill.htm

    Otherwise you can use DLookup() or open a recordset.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jcharbula is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    5
    Thank you, I'm new to Access but know SQL pretty well. Can you give me the syntax for the DLookup in the Expression builder? I'm getting a circular reference error. Everything is in the same table, I just can't figure out how to base the Dlookup on the entry field which is just above in the form? Thanks in Advance

  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
    See if this helps:

    DLookup Usage Samples

    To avoid a circular reference error, make sure your control have different names than the fields ("txtFieldname" instead of "FieldName").
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Sub Form auto populate
    By keiath in forum Forms
    Replies: 4
    Last Post: 02-14-2014, 02:59 PM
  2. Auto populate
    By Rabastan in forum Programming
    Replies: 5
    Last Post: 01-25-2014, 10:35 AM
  3. Auto populate tbl
    By fodzilla in forum Access
    Replies: 3
    Last Post: 06-15-2012, 05:03 PM
  4. Complicated auto populate
    By duncthepunk in forum Forms
    Replies: 7
    Last Post: 03-17-2011, 10:37 PM
  5. Auto Populate
    By co_sportsguy in forum Access
    Replies: 3
    Last Post: 09-01-2010, 01:22 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