Question : user defined error messages instead of system defined error messages

hi
I have few edit boxes where I need to input only integer values. how can I make sure that?
I the user enters invalid values, i want to display user defined error messages instead of system defined error messages.
please find my project code attached.
navigate menu->search and in the "ID" field, the user can only enter positive integers and in the "Severity" field, the user can enter only values 1 to 5.

Is there a way that I can make the current Severity and Status text boxes as list boxes so that I can have some fixed values in those fields.
eg: "Severity" field should have values 1-5 and "Status" field should have values such as "open", "closed", "Assigned" etc


Answer : user defined error messages instead of system defined error messages

Please compact your DB before uploading it.
Your 13 mb file reduced to 400k, when I ran the Compact utility.

To solve you issue for "Severity" you should Right click the textbox in design view and select: "Change to".
The select a combobox
Set the "RowSourceType" property of the combobox to "Value List".
Set the "RowSource" property to: 1,2,3,4,5
Set the Limit to list property of the combobox to: Yes

For the Status:
you should Right click the textbox in design view and select: "Change to".
The select a combobox
Set the "RowSourceType" property of the combobox to "Value List".
Set the "RowSource" property to: "Open","Closed"
Set the Limit to list property of the combobox to: Yes

This way they can "Only" select/enter Pick 1,2,3,4 or 5 for severity.
And only Open or Closed for Status
;-)
Make sense?

JeffCoachman



Random Solutions  
 
programming4us programming4us