Results 1 to 2 of 2
  1. #1
    imtiaz703 is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    11

    Dlookup

    It is not working. can anyone help me. Thx
    If (IsNull(DLookup("[ReceiptNo]", _
    "ReceiptBooks", "[StartingNo]" And " [Endingno] ='" _
    & Me!ReceiptNo & "'"))) Then
    MsgBox "fgdgfdgfd", vbRetryCancel, "ReceiptBook Issued"


    Cancel = True
    End If

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Do the field names include the brackets? If not, remove them. Also, you cant combine your criteria with And the way you did. You have to show StartingNo = something AND EndingNo = something. You cannot do StartingNo And EndingNo = something.

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

Similar Threads

  1. Dlookup
    By jarvisaurus in forum Queries
    Replies: 4
    Last Post: 01-24-2012, 01:21 PM
  2. Help with a Dlookup
    By funkygoorilla in forum Programming
    Replies: 1
    Last Post: 01-21-2012, 10:04 AM
  3. Dlookup help
    By justhininabouti in forum Programming
    Replies: 2
    Last Post: 11-26-2011, 10:53 PM
  4. May it is Dlookup
    By cap.zadi in forum Programming
    Replies: 3
    Last Post: 05-09-2011, 05:58 AM
  5. Dlookup help
    By jcaptchaos2 in forum Access
    Replies: 17
    Last Post: 04-21-2011, 01:33 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