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

Changing data in a bound Textbox

Status
Not open for further replies.

CLOS

MIS
Jan 30, 2002
23
0
0
US
Help! Help! Urgent Help!

I have a bound textbox that I want to test to see if the
user changed any of the data found in the bound textbox.
In otherwords, I want to know if the data has been changed.
Can somebody give me the [event procedure] code for this one, thanks!
 
Hi!

In the BeforeUpdate event procedure for the form you can compare the OldValue and the Value of the textbox.

Private Sub From_BeforeUpdate(Cancel As Integer)

If Me!YourTextBox.OldValue <> Me!YourTextBox.Value Then
Do your stuff here
End If

End Sub

hth
Jeff Bridgham
bridgham@purdue.edu
 
Jebry,[b/]

Thanks so much for your Help. You are truly super.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top