Results 1 to 2 of 2
  1. #1
    metronometro is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    1

    Dlookup problem

    Hi everyone, I'm italian so apologises for my bad english.

    I'm tryng a dlookup function in a Query based upon a table. The table is [Users] and has the following fields:
    Code:
    User_id, First Name, Last Name
    .

    Now if I want the query to return the First Name, or last Name, specfying a criteria, (User_id=1) it works.

    I use this expression in SQL
    Code:
    SELECT DLookUp("[First Name]","Users","User_id = 1") AS Espr1;
    But I'd like dlookup to return the FULL NAME in a single field. I've tried
    Code:
    SELECT DLookUp("[First Name]" & " " & [Last Name]","Users","User_id = 1") AS Espr1;
    It doesn't work. Where do I mistake? Any suggestion will be appreciated

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Missing quote before Last Name

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

Similar Threads

  1. Using Dlookup problem
    By Lupson2011 in forum Access
    Replies: 5
    Last Post: 12-07-2011, 10:33 AM
  2. Form title dlookup problem
    By zoinnk in forum Forms
    Replies: 3
    Last Post: 10-03-2011, 08:40 AM
  3. Newbie Dlookup problem
    By opopanax666 in forum Programming
    Replies: 7
    Last Post: 08-13-2010, 05:47 AM
  4. dlookup function problem
    By bdaniel in forum Programming
    Replies: 3
    Last Post: 04-26-2010, 05:55 AM
  5. Dlookup problem
    By CalifDan in forum Reports
    Replies: 4
    Last Post: 12-09-2009, 06:09 AM

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