Results 1 to 4 of 4
  1. #1
    msp4422 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    7

    Like in Dlookup

    Hi




    Could you tell me how we can achieve the below req:


    SV="Russia"
    DeptId = DLookup("city","Lok","country like 'SV'")


    Thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    DeptId = DLookup("city","Lok","country like '" & SV & "'")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    msp4422 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    7
    Could you explain me the meaning of the '*" & .. How and where we need to use them.. thanks once again

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    * is a wildcard; you use it when you want inexact matches, like anything starting with P (P*) or anything with Paul in it (*Paul*).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Dlookup
    By Bertrand82 in forum Programming
    Replies: 6
    Last Post: 11-23-2012, 01:25 AM
  2. Dlookup()
    By Freshcan in forum Access
    Replies: 2
    Last Post: 08-01-2012, 11:43 PM
  3. Dlookup
    By cbrsix in forum Forms
    Replies: 2
    Last Post: 11-01-2011, 02:59 PM
  4. Dlookup help
    By jcaptchaos2 in forum Access
    Replies: 17
    Last Post: 04-21-2011, 01:33 PM
  5. DLookup
    By neil45156 in forum Forms
    Replies: 1
    Last Post: 04-11-2011, 11:31 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