M
manrav
Guest
I have 2 text boxes. Text0 and Text2.
When I click a button, I would like the value of tex2, to be the default value of text0. Below is the code I am using. The problem is that once i close the form the default value resets to nothing. How do i get the default value to stay. Any Help, tips, greatly appreciated..
Private Sub Command4_Click()
Dim defvalue
defvalue = Me.Text2
MsgBox defvalue
Dim x2 As Control
Set x2 = Me.Text0
With x2
.SetFocus
.Enabled = True
. DefaultValue = defvalue
End With
End Sub