Defualt Checkbox and text

SicNeMeSiS

Registered User.
Local time
Today, 15:43
Joined
Sep 3, 2008
Messages
15
Two quick questions I could use some help with... In my form I have a checkbox and a text area. The questions are; Whats the best wat to have the text box defualt to without a check and have the text area cleared when a submit button is pressed? thank you in advanced for your help.

Sic
 
1:
Code:
Private Sub CheckBox1_AfterUpdate()
On Error GoTo errorhandler
'my checkboxes give values 1 or 2.  your's might not.  to see what values you give, use msgbox me.checkbox1.value 
 
If Me.CheckBox1.Value = 1 Then
      Me.textbox1.value= "DefaultValue"
Else
      Me.CheckBox1.value= "SomethingElse"
End If

errorhandler:
If Err.Number = 0 Then
Else
MsgBox ("error")
End If

same thing for the button event. onClick set value or textfield ="SomeValue"
 

Users who are viewing this thread

Back
Top Bottom