Results 1 to 2 of 2
  1. #1
    PicoTTS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    29

    Dlookup Error

    I have a table called "Customers" that has the fieldsnames of "Names", "Address", and City"

    I've created a query from another table. One of the fields in this table is a lookup field called "Customer" that lists the "Names" from the Customers Table.

    I am trying to add another query field using the following to get the address of the customer in question:



    CustomerAddress: DLookUp("[Address]","[Customers]","[Names] = " & Customer)

    When I run the query, I get a #error. I have double checked to make sure all the field names are correct.

  2. #2
    PicoTTS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    29
    I have figured it out.
    I have to use:
    CustomerAddress: DLookUp("[Address]","[Customers]","[Names] = '" & [Customer] & "'")

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

Similar Threads

  1. Replies: 2
    Last Post: 01-04-2016, 09:40 AM
  2. DLookup error
    By Nadine67 in forum Access
    Replies: 12
    Last Post: 07-14-2015, 02:51 PM
  3. Dlookup error
    By Risto85 in forum Programming
    Replies: 7
    Last Post: 02-25-2015, 11:06 AM
  4. DLOOKUP #Error
    By neo651 in forum Forms
    Replies: 6
    Last Post: 12-12-2012, 12:54 PM
  5. DLookup Error
    By uncletreetrunk in forum Programming
    Replies: 5
    Last Post: 07-16-2012, 08: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