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

Simple text box question

Status
Not open for further replies.

eussias

Programmer
Sep 25, 2001
97
AU
I know this has to be easy, but for some reason I'm stuck on it. What I need to do... I have a form with a number of text boxes on them which, when the form is loaded, they are all disabled. The user can then choose to edit records, which enable all text boxes allowing editing. All I want to do is check if the text in one of the text boxes changed at all when the user presses the Save command button. I know I have to use the after_update event, but it just doesn't seem to be working for me. Any suggestions?
 
Try something like this on the Save button.

if textBox1.oldvalue <> textbox1 then
msgbox &quot;Textbox has changed&quot;
else
msgbox &quot;Textbox hasn't changed&quot;
end if

Nick
 
Hi!

If you could give a little more information. For instance, what do you want to do if the text box hasn't changed and if it has? If you will use the information to decide whether or not to keep the changes, then after update procedure isn't the one you want.

Jeff Bridgham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top