copy contents of one txt box to another

k983111

Registered User.
Local time
Today, 12:41
Joined
Aug 21, 2002
Messages
36
I have a form with two txt boxes A and B. Is it possible to attach some fairly straight forward code to the onclick event of a button that will copy the contents from txt box A to txt box B?.
Thanks in advance.
 
Thanks for the quick reply. I used the expression builder for the onclick event of the button and it placed the following code in for me.
=[TextA]=[TextB]
but this didn't work, what have i missed (i'm new to programming).
 
I tried this in code builder and it came up with a compile error. So i tried it without the first = and it came up with a run time error.
 
Me.TextB = Me.TextA

check that texta/b are the names of the text box controls, not the field names
 

Users who are viewing this thread

Back
Top Bottom