Make a Command Button Copy info from 1 field to another field in a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Thanks in advance for this
I would like to have a command button that copy info from one field to another and then clears the first field.
 
Private Sub cmdMyCommandButton_Click(

' copy text from field 1 to field
[txtField2] = [txtField1

' empty field
[txtField1] = "

End Su

If you're uncomfortable with code, use the SetValue action in a macro

----- Mike wrote: ----

Hi
Thanks in advance for this
I would like to have a command button that copy info from one field to another and then clears the first field.
 
Back
Top