MsgBox in Update Queries

  • Thread starter Thread starter bigscousebear
  • Start date Start date
B

bigscousebear

I'm not very skilled at using VBA. I have created an update query that
reduces a number by 1. This is the criteria:

IIf([Maximum number of vouchers to be issued per day]<=0,"You cannot claim
this gift",[Maximum number of vouchers to be issued per day]-1)

The only problem is the "You cannot claim gift" part does not appear when
the field reaches 0. Ideally, I would like a proper message to appear. The
thing that does appear is a Microsoft that says in a roundabout way that the
query cannot be run.

Can anyone help, please?
 
Queries are not powerful enough to do this.
You need to use a macro or VBA code.
 
Back
Top