I have a textbox where I have setup some code in the AfterUpdate event that is intended to take the value entered into the box and "do stuff". I have struggled to get it to do stuff, and finally realized that one of the problems is because my me.textbox.value is always coming up empty even when there is text entered into the textbox on the form and I've pressed enter. I know very little about the step-through functions in VBA and finally figured out how to F8 my way through my textbox AfterUpdate sub. I discovered that the very first thing it does, before even making it to any of my "do stuff" code, is to run the userform initialize sub. In the initialize sub I had previously written code to explicity set the value of the textbox to "" so that it would be clear upon opening. What is tripping me up is that my textbox afterupdate sub does not call the Intialize sub anywhere in its code. Why is it making that jump?
Below is the beginning of the AfterUpdate code, which is a hot mess right now because of all the different coding things I'd tried prior to discovering the null textbox value issue.
Thanks.![]()
Please Login or Register to view this content.
Bookmarks