Joseph
|
Posted: 01/13/2002, 12:16 AM |
|
How can I customised Error Messages
I want to Display Customised Error Messages In-Place of default CC error messages in two ways :
1. My Own Message in place of default message.
2. Error Message in Different FONT and COLOR in place of default
How Can I Do ?
Joseph
|
|
|
Ken Hardwick
|
Posted: 01/13/2002, 6:54 AM |
|
You can create your own error messages in the before events...
For instance,my form name is "Members", my field name is "Project_ID"
and I want the Project_ID to be less than 100
(note the error message variable is in format of s"FormName"Err)
'add the following in the before execute event
if fldProject_ID > 99 then
myMessage = "You entered a ProjectID of " & fldProject_ID
myMessage = myMessage & ". You must enter a number less than 100."
sMembersErr = "<font color=""#DC143C"">" & myMessage & "</font>"
end if
Hope that helps....
|
|
|
|