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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get old value before the new value is entered

Status
Not open for further replies.

H1004

MIS
Oct 28, 2003
136
US
If I want to capture an old value before it gets update. How can I go about
doing that..I tried assigning the value before the form update, but it doesn't work.
For example:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.txtOldPoints = Me.fraContactResult.Value
End Sub
And I even try
Private Sub fraContactResult_BeforeUpdate(Cancel As Integer)
Me.txtOldPoints = Me.fraContactResult.Value
End Sub
But it doesn't work either.
Any suggestion to do this.
 
Hi!

Have you tried using the .OldValue property of the control? I'm not sure if it's available in access 97, though.

[tt]Me!txtOldPoints.Value = Me!fraContactResult.OldValue[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top