N
NewKidontheBlock
In my database there are a large number of date fields that I wish to
validate using VBA rather than validation (more user friendly)
Firstly, is it possible to use a private variable instead of a text string
in MsgBox().
For example :
MsgBox(DateEarly)
instead of
MsgBox("The date cannot be before the review date. Please enter a differnt
date")
Secondly, I have defined the variable as follows in the Declarations section
of the code :
Private DateEarly as String
DateEarly = "The date cannot be before the review date. Please enter a
different date" but it results in an invalid outside procedure error.
If this can be achieved it would save having to update 20 or 30 message box
messages
Kind regards
Tony
validate using VBA rather than validation (more user friendly)
Firstly, is it possible to use a private variable instead of a text string
in MsgBox().
For example :
MsgBox(DateEarly)
instead of
MsgBox("The date cannot be before the review date. Please enter a differnt
date")
Secondly, I have defined the variable as follows in the Declarations section
of the code :
Private DateEarly as String
DateEarly = "The date cannot be before the review date. Please enter a
different date" but it results in an invalid outside procedure error.
If this can be achieved it would save having to update 20 or 30 message box
messages
Kind regards
Tony