-
December 8th, 2012, 12:14 PM
#1
Clearing all fields in an application form,reset for next customer.
I can clear all the text boxes when i press reset button ,ie txtName.text = "".... i can clear the combo boxes in the same way,but how do i reset the radiobuttons and checkboxes that have been selected.
-
December 8th, 2012, 12:50 PM
#2
Re: Clearing all fields in an application form,reset for next customer.
option1.value = False
check1 = vbUnchecked
-
December 9th, 2012, 04:23 PM
#3
Re: Clearing all fields in an application form,reset for next customer.
Originally Posted by d.paulson
option1.value = False
check1 = vbUnchecked
Thanks dude,i was wondering if you could clarify your answer for me,i'm a total novice here.
Much thanks anyway
-
December 9th, 2012, 05:24 PM
#4
Re: Clearing all fields in an application form,reset for next customer.
To clear or turn off an Option button:
Option1.Value = False
To clear a CheckBox:
Check1 = vbUnChecked
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
December 11th, 2012, 09:07 AM
#5
Re: Clearing all fields in an application form,reset for next customer.
Typically I will write a little sub routine to reset the form.
This sub would contain code to clear textboxes, checkboxes, option buttons, combos and set any defaults that may need to be set.
I would call this when I load the form and at any time the values need to be reset during execution.
Always use [code][/code] tags when posting code.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|