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


Top