Hi,
I'm just dipping my toe into message boxes, never really having had a need for them before. What have I done wroing in the following?
The following DOES work, but I want to give the message a title and the critical icon.
After reading help, the first version above is what I came up with but the error message reads "Compile error: Expected: = " And I'm afraid i don't understand that!
I don't want to give the user any choices at this point. The next lines of code set the previous entry to Null and move the focus back to the input box, which works fine.
Thanks.
I'm just dipping my toe into message boxes, never really having had a need for them before. What have I done wroing in the following?
Code:
MsgBox ("That's not a Monday." & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "ALWAYS enter a Monday, even if the data was downloaded on a different day for any reason.",vbCritical,"Check the date")
Code:
MsgBox "That's not a Monday." & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "ALWAYS enter a Monday, even if the data was downloaded on a different day for any reason."
I don't want to give the user any choices at this point. The next lines of code set the previous entry to Null and move the focus back to the input box, which works fine.
Thanks.