i am trying to put a message box in an if statement and im struggling.
iif([Voucher]>0 and [VoucherNumber]>0,=MsgBox("Please Bla Bla Bla",vbOK))
ive searched google and 'Tech On The Net' and i still cant figure out why it has an error
the error is Complie Error: Expected Expression
the part hightlighted is the = sign. i remove this and it then dosnt like part of the Message. i dont know what is happening.
any help?
iif([Voucher]>0 and [VoucherNumber]>0,=MsgBox("Please Bla Bla Bla",vbOK))
ive searched google and 'Tech On The Net' and i still cant figure out why it has an error
the error is Complie Error: Expected Expression
the part hightlighted is the = sign. i remove this and it then dosnt like part of the Message. i dont know what is happening.
any help?