N
NoodNutt
G'day ppl
Have a form which after the user has completed all data input can invoice
job out.
I have a command button:
Private Sub InvoiceBtn_Click()
Dim InvoiceResp As Integer
InvoiceResp = MsgBox("Are you sure you want to mark this record for
Invoicing ?????", vbYesNo)
If InvoiceResp = vbYes Then
Me.Invoice = 1
Me.WeekNo = Me.DateDel
Else
DoCmd.CancelEvent
End If
End Sub
What I would like to have happen is that before it updates Me.Invoice, it
checks that the [PackStatus]=6 (6=Pack is Delivered).
So if the criteria doesn't match then display message prompt"Record cannot
be Invoiced, Not Delivered off system yet!".
TIA
Mark.
Have a form which after the user has completed all data input can invoice
job out.
I have a command button:
Private Sub InvoiceBtn_Click()
Dim InvoiceResp As Integer
InvoiceResp = MsgBox("Are you sure you want to mark this record for
Invoicing ?????", vbYesNo)
If InvoiceResp = vbYes Then
Me.Invoice = 1
Me.WeekNo = Me.DateDel
Else
DoCmd.CancelEvent
End If
End Sub
What I would like to have happen is that before it updates Me.Invoice, it
checks that the [PackStatus]=6 (6=Pack is Delivered).
So if the criteria doesn't match then display message prompt"Record cannot
be Invoiced, Not Delivered off system yet!".
TIA
Mark.