Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing fields in a form based on an option box.

Status
Not open for further replies.

DBritter

Technical User
Jun 28, 2000
37
US
I need to know how I can clear a group of fields in a form based on a selection from an option box. If I select option 1 then the first five fields are cleared, If I select option 2 then the next five fields are cleared, etc.
 
USe an if statement that checks the value you use if it is a check box<br>then the statement in your code would be <br><br>if 'name of checkbox' = true then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;delete the first five records&quot;<br>else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;delete the second five records&quot;<br>end if<br><br>fi you want to check a value then insert the value into where the true statement is if you have more than one else use the elseif statement ( don't add a space between)<br> <p>Walt III<br><a href=mailto:SAElukewl@netscape.net>SAElukewl@netscape.net</a><br><a href=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top