Results 1 to 2 of 2
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862

    Another Dlookup ?

    I have:
    IIf([Lin]="XXB840",DLookUp("[unique]","[Data]","[unique] ='" & [parent] & "'" & " And [Lin]='[Mounts].[MountLin]'"),"")


    Tables1
    ..Data
    ....Fields: all are Short Text
    .....LIN
    .....Unique
    .....Parent

    Table2
    ..Mounts
    ....Fields: Short Text
    .....MountLin



    Mounts.MountLin = Data.Lin but filtered down.

    How do I look up the parent if Mounts.lin

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you dont use DLOOKUP in a query. The QUERY is the dlookup. Join your data table to the Lookup table.

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

Similar Threads

  1. Shortening if / dlookup >0 / then dlookup
    By Jack Russel in forum Modules
    Replies: 1
    Last Post: 02-19-2016, 03:01 PM
  2. DLookUp help!!
    By netguy in forum Programming
    Replies: 2
    Last Post: 09-28-2014, 09:44 AM
  3. DLOOKUP help
    By db123 in forum Access
    Replies: 10
    Last Post: 09-09-2014, 02:38 PM
  4. Dlookup
    By pcandeias0 in forum Programming
    Replies: 3
    Last Post: 07-09-2011, 02:31 PM
  5. DLookup help
    By denners05 in forum Access
    Replies: 1
    Last Post: 06-11-2011, 12:55 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