Results 1 to 3 of 3
  1. #1
    justhininabouti is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    15

    Dlookup help

    Can someone Please tell me what is wrong with this statement?



    DLookup("[AssignedEmployee]", "[ShippedEmployees]", "[Vessel]= '" & Combo5 & "' AND [Position]= '" & Combo7)


    Thanks

  2. #2
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Quote Originally Posted by justhininabouti View Post
    Can someone Please tell me what is wrong with this statement?

    DLookup("[AssignedEmployee]", "[ShippedEmployees]", "[Vessel]= '" & Combo5 & "' AND [Position]= '" & Combo7)


    Thanks
    You need the sigle quote at the end
    DLookup("[AssignedEmployee]", "[ShippedEmployees]", "[Vessel]= '" & Combo5 & "' AND [Position]= '" & Combo7 & "'")

  3. #3
    justhininabouti is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    15
    Thank you Toyman!!!

    I had Tried the "'" at the end, but without the &.

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

Similar Threads

  1. Dlookup
    By pcandeias0 in forum Programming
    Replies: 3
    Last Post: 07-09-2011, 02:31 PM
  2. DLookup help
    By denners05 in forum Access
    Replies: 1
    Last Post: 06-11-2011, 12:55 PM
  3. Is DLookUp What I should be using?
    By cameronaziz in forum Forms
    Replies: 2
    Last Post: 03-24-2011, 04:29 PM
  4. dlookup help
    By gsantacruz in forum Programming
    Replies: 9
    Last Post: 10-11-2010, 11:46 AM
  5. Need help with dlookup.
    By Keith in forum Database Design
    Replies: 8
    Last Post: 05-24-2010, 06:28 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