Wanted: Conditional Required Field Validator [modified]
-
Anyone have a quick work-around for this: 1 List box + DELETE Button (to delete selected record) 1 Text Box + ADD Button (to add text entered as new record) 1 Required Field Validator connected to text Box Desired Effect: - RFV only displays error if the ADD button is pressed & TextBox is empty Default Effect: - RFV displays error if the ANY button is press & TestBox is empty (requiring user to put something in the text box in order to delete a record.. not so good) TIA. ~Mike Stanbrook
modified on Saturday, January 22, 2011 10:30 AM
-
Anyone have a quick work-around for this: 1 List box + DELETE Button (to delete selected record) 1 Text Box + ADD Button (to add text entered as new record) 1 Required Field Validator connected to text Box Desired Effect: - RFV only displays error if the ADD button is pressed & TextBox is empty Default Effect: - RFV displays error if the ANY button is press & TestBox is empty (requiring user to put something in the text box in order to delete a record.. not so good) TIA. ~Mike Stanbrook
modified on Saturday, January 22, 2011 10:30 AM
Set the Delete button´s "CausesValidation" property = false
-
Set the Delete button´s "CausesValidation" property = false
Uh. Maybe I should be wearing a helmet while coding...protect myself from my own stupidity. Thanks. ~Mike Stanbrook
modified on Saturday, January 22, 2011 10:30 AM