Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy previous value in field on same form

Status
Not open for further replies.

DonnaKK

Technical User
Jun 22, 2001
11
0
0
US
I know this has got to be easy! If one field is modified, I want to copy the before modified value into another field on the same form.

CurrentValueField = 2
PreviousValueField = 0

Now if CurrentValueField is modified to a 3, I want the 2 copied to the PreviousValueField.

CurrentValueField = 3
PreviousValueField = 2



 
put this in the onChange event of the field...

tbxNewField = currentField.value

note, use curField.Value and NOT .Text as .Value doesn't get changed till the current field has been confirmed

--------------------
Procrastinate Now!
 
THANK YOU, CROWLEY16! Works like a charm! (Its always the simple things that get me!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top