Results 1 to 3 of 3
  1. #1
    shadowhawk is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    2

    Help with DLookup

    Hello Access Community,

    I am rather new to access and have a little problem while building a glossary.
    I have a query which is called "QRY Glossary Data Item Process", it contains information about terms and meanings of words. The exact names for the columns are "Begriff (dt)"(=term) and "Definition (dt)"(=meaning).
    I have built a new form ("Glossary") that forwards information about terms being used in another form ("SIPOC") in a list ("List8").
    Now i want a text field to display information about the meaning which is taken out of the Query.

    I am using the DLookup function but might be using it wrong.
    =DLookup("[Definition (dt)]";"QRY Glossary Data Item Process";"[Begriff (dt)] LIKE
    [Liste8]")



    I always get the response #failure after starting the form and clicking on an item in the list.

    I tried microsoft websites and other sites but they just don't help me.
    Maybe you can help me with your experience.

    Looking forward for interesting answers.

    Greetings
    shadowhawk

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,437
    you should not use none alpha numeric characters in table and field names - it can confuse access on occasions, even if surrounded with square brackets

    with regards your dlookup - it will only return one value so not sure the benefit of using like - you should use =. And since this is text needs to be surrounded with single quotes - try

    ....;"[Begriff (dt)]='" &
    [Liste8] & "'")

  3. #3
    shadowhawk is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    2
    Quote Originally Posted by Ajax View Post
    you should not use none alpha numeric characters in table and field names - it can confuse access on occasions, even if surrounded with square brackets

    with regards your dlookup - it will only return one value so not sure the benefit of using like - you should use =. And since this is text needs to be surrounded with single quotes - try

    ....;"[Begriff (dt)]='" &
    [Liste8] & "'")
    Dear Ajax,

    thank you so much for your solution! It functions now.

    Greetings
    shadow

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 an ID
    By JeroenMioch in forum Forms
    Replies: 15
    Last Post: 06-18-2014, 11:18 AM
  3. DLOOKUP help please
    By goddo2305 in forum Access
    Replies: 5
    Last Post: 05-28-2014, 03:41 AM
  4. Is DLookUp What I should be using?
    By cameronaziz in forum Forms
    Replies: 2
    Last Post: 03-24-2011, 04:29 PM
  5. DLookup
    By smidgey in forum Forms
    Replies: 13
    Last Post: 01-19-2011, 09:27 AM

Tags for this Thread

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