Results 1 to 4 of 4
  1. #1
    aceSoft is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    8

    Dlookup criteria


    hello there i have this code and its giving me error

    Code:
    Me.Computation = DLookup("EquiVal", "tbl_classication", [tbl_classication]![Classification] = Me!Proj_Class And Me.ProjCost & " BETWEEN   [tbl_classication]![From]  and  [tbl_classication]![To] ")
    Got problem with my criteria part, I want something like
    -look on the table where classification like Proj_class
    -and between my cost range.
    I know its just on my syntax, hope someone guide me.

  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,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    aceSoft is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    8
    Thank you,, I got it properly...

    Code:
    Me.Computation = DLookup("EquiVal", "tbl_classication", Me.ProjCost & " BETWEEN   [tbl_classication]![From]  and  [tbl_classication]![To]" _
                 & " AND Classification = '" & Forms!frm_assess!Proj_Class & "'")

  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,652
    Happy to help.
    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. String criteria used in DLookup
    By joecamel9166 in forum Programming
    Replies: 9
    Last Post: 03-11-2016, 09:37 AM
  2. DLookup with two criteria
    By craig1988 in forum Programming
    Replies: 1
    Last Post: 01-29-2015, 09:01 AM
  3. Dlookup with criteria of textbox
    By thescottsman92 in forum Access
    Replies: 3
    Last Post: 08-30-2013, 03:32 AM
  4. dlookup with a contains criteria?
    By noretoc in forum Access
    Replies: 3
    Last Post: 05-02-2012, 10:18 AM
  5. Multiple criteria in DLookup
    By crowegreg in forum Forms
    Replies: 7
    Last Post: 06-22-2011, 01:47 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