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!

vba OnChange using if me.text0 ...onchange...then

Status
Not open for further replies.

MJD1

Technical User
Jul 18, 2003
134
0
0
CA
hi, trying to use the Onchange in a vba statement but haven't been able to figure it out. I also search but couldn't find the solution. essentially, here's what i'd like to achieve:

if me.text0.onchange = true then

do this..

else

do that

end if


thanks
Martin
 
That is not how you use event properties. I also do not think the on change event is likely what you want. Watch this video about programming with event procedures.
My guess you my want to check the controls after update or before update event, not likely the change event. That fires on each keystroke.
 
MJD1,
You should tell us what you want to accomplish. Something like "when a user presses a key while in a text box name Text0, I want to test the value of .... and do ...."

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top