On May 13, 4:03*pm, jas580 <jas...@discussions.microsoft.com> wrote:
> Hello,
>
> On a form, I have an unbound text box with a default value of 2. *Whilein
> form view, I can change the value of the text box. *Now I want to create a
> button on the form that, when clicked, will change the text box value back to
> its default. *Thanks for the help...
>
> -jeff
use onclick event..Assuming your unbound text box is calle text0 and
button is called command2 use the follwing code.
Private Sub Command2_Click()
Text0 = 2
End Sub
|