Results 1 to 2 of 2
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    using the left function within a DLookup

    Can you use the left function in the criteria within a DLookup statement? I don't know if's my syntax, or I'm trying to do something that is not possible.



    Here's my code:

    Me.Group = DLookup("[VP Position Description]", "ITS_Operations_SVP", Left([ACCT UNIT],4) = & Me.Combo48)

  2. #2
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    It was my syntax. Here's what works

    Me.Group = DLookup("[VP Position Description]", "ITS_Operations_SVP", "left([ACCT UNIT],4) ='" & Me.Combo48 & "'")

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

Similar Threads

  1. ACCESS 2010 DLookup and Left Trim
    By bamptontowers in forum Access
    Replies: 5
    Last Post: 05-23-2013, 08:22 AM
  2. mid,left function
    By revned12 in forum Queries
    Replies: 2
    Last Post: 07-06-2012, 12:09 AM
  3. Left () function in a query
    By Dega in forum Queries
    Replies: 3
    Last Post: 05-24-2012, 03:46 PM
  4. Update with left function
    By yerromnitsuj in forum Access
    Replies: 3
    Last Post: 01-09-2012, 03:41 PM
  5. Left function with various lenth of digits
    By mohsin74 in forum Queries
    Replies: 0
    Last Post: 07-10-2007, 02:00 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