dlookup syntax

  • Thread starter EMILYTAN via AccessMonster.com
  • Start date
E

EMILYTAN via AccessMonster.com

Is there anything wrong with my syntax?
It showed me error highting that you have cancelled the previous operations...


Private Sub cmdJobCompletion_Click()

strPartNumber = Nz(DLookup("W_QtyPending", "WIPRawDetails", "JobNumber='" &
Me.txtJobNumber & "' AND W_QtyPending<> 0 "))
Debug.Print strPartNumber

If strPartNumber <> 0 Then
MsgBox ("No job completion")


End If



End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Syntax error 1
Displaying a simple message box 1
Why if-then-else fails??? 3
dlookup using variable as criteria 1
DLookup Syntex error it is killing me 7
Dlookup - new record 5
Access Can't Get Dlookup To Work 1
Error 3201 1

Top