CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How can I customised Error Messages

Print topic Send  topic

Author Message
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....

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.