Error Trap Zero and Null Values

E

eric.nguyen312

Hi, I'm trying to write code that will not allows users to continue
unless a Product Sale is entered. This is what I have so far:

Private Sub ForecastProductSale_BeforeUpdate(Cancel As Integer)
If Nz(JobEstimatedProductSale, "") = "" Then
MsgBox "Warning: A Product Sale must be entered.", vbOKOnly,
"Warning"
Exit Sub
End If

End Sub

Can someone please tell me what I'm doing wrong?

Thanks.
 

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

Top