Results 1 to 6 of 6
  1. #1
    dgarber is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    13

    Dlookup

    Wondering if someone can help me figure this out?

    I have a table named Games. In the table I have 2 fields which are Game_Number and Game_Name. Each Game_Name corresponds to a specific Game_Number.



    I have a form named GameInventoryEntry with a field where I scan a Game_Number and a text box called Game_Name. What I need to have happen is when the Game_Number field is populated with the scan, the Game_Name text box is populated with the corresponding Game_Name.

    I am trying to use Dlookup but am lost on how to write the 3rd argument.

    Thanks
    D

  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,652
    You haven't shown your effort, so here's a reference:

    http://www.theaccessweb.com/general/gen0018.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    dgarber is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    13
    I'm not sure what "You haven't shown your effort" means?


  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,652
    Your effort at creating a DLookup() that returned your desired information.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    dgarber is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    13
    =DLookUp("Game_Name","Games","Game_Number=" &...................is as far as I got.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    The link should get you the rest of the way.
    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. DLookup
    By aviscomi in forum Access
    Replies: 3
    Last Post: 05-23-2016, 10:03 AM
  2. Shortening if / dlookup >0 / then dlookup
    By Jack Russel in forum Modules
    Replies: 1
    Last Post: 02-19-2016, 03:01 PM
  3. If and Dlookup
    By Zinger in forum Programming
    Replies: 6
    Last Post: 10-17-2015, 04:47 PM
  4. DLookUp help!!
    By netguy in forum Programming
    Replies: 2
    Last Post: 09-28-2014, 09:44 AM
  5. Dlookup help
    By jcaptchaos2 in forum Access
    Replies: 17
    Last Post: 04-21-2011, 01:33 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