Results 1 to 3 of 3
  1. #1
    Eric2013 is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2013
    Posts
    14

    Dlookup and combo box.

    Just like a lot of others, i have a combo box that works perfect for what i'm doing. I now would like to add an expression to put in a value lookup from a table. Table is called "Master Parts" the parts consist of both numbers and letters.



    then i've placed an unbound text box and would like to have it put in a value from another table.

    Combo box puts in the value from a bound box. How do i get the value from the combo box to my unbound text box?

    I've read a few posts on here, and followed "application.dlookup method [access]

    This is what i've tried. I didn't add anything in for criteria....yet, as i don't think it's needed?


    DLookUp(«expression», «domain», «criteria»)

    =DLookUp([Combo414].[column](7),[Master Parts]![Location])

    Master Parts is my table where all the part numbers are kept in one column, and location is in another column, same table.

    I do know i've done something in correct here, and hoping some nice individual would help.

    Tks in advance. Eric..

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    You might find this easier:

    BaldyWeb - Autofill

    Here is the syntax of the DLookup() if you want to stay with it:

    DLookup Usage Samples

    You would need a criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Q: How do i get the value from the combo box to my unbound text box?

    A: in the unbound text box put as its control:
    =[ComboboxName].column(CorrectNumber)

    the .column is literal and you must have the parenthesis around whatever is the correct number; btw the numbering of columns begins with 0.....

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

Similar Threads

  1. Replies: 2
    Last Post: 10-21-2014, 07:57 AM
  2. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  3. Replies: 1
    Last Post: 08-13-2011, 12:03 AM
  4. Combo box not picking up values basis dlookup
    By amangupts in forum Programming
    Replies: 13
    Last Post: 07-15-2011, 11:03 AM
  5. Replies: 16
    Last Post: 08-19-2010, 01:40 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