C
Chris W, AgriBank
I have a MsgBox coded as follows:
Dim intAnswer As Integer
intAnswer = MsgBox ("Would you also like to apply rules from the BizRules
Manager?", vbYesNoCancel + vbQuestion, "Apply BizRules")
Some (but not all) of my users receive the following run-time error message
when executing the MsgBox code above:
"There is an invalid use of the . (dot) or ! operator or invalid
parentheses.2447"
To a newbie like me it seems like Access is complaining about the
parentheses used in the MsgBox function but the compiler complains when I try
removing the parens (presumably because the function is assigning a value to
intAnswer).
Any help in avoiding the run-time error would be greatly appreciated!
Dim intAnswer As Integer
intAnswer = MsgBox ("Would you also like to apply rules from the BizRules
Manager?", vbYesNoCancel + vbQuestion, "Apply BizRules")
Some (but not all) of my users receive the following run-time error message
when executing the MsgBox code above:
"There is an invalid use of the . (dot) or ! operator or invalid
parentheses.2447"
To a newbie like me it seems like Access is complaining about the
parentheses used in the MsgBox function but the compiler complains when I try
removing the parens (presumably because the function is assigning a value to
intAnswer).
Any help in avoiding the run-time error would be greatly appreciated!