I'm using Access 2003.
Is there a way to detect whether a user has begun typing in a textbox? Or whether, after typing something into it, they have erased what they have typed?
I have a Search form with a criteria value of type text that the user enters into a textbox. I also have other search criteria on the form (selected via combobox) that are mutually exclusive to the textbox criteria. (It wouldn't make sense to enter both types of criteria, and the form makes it clear that it's an either/or situation.) To that end, if the user enters text into the textbox and tabs out of the field, I disable the combobox fields to make it clear.
But I'd prefer to disable the combobox controls as soon as the user types the first character. Likewise, if they erase the data from the textbox I'd like to re-enable the combobox controls. The key is that I don't want to require that they tab out of the control to change the Enabled property of the combobox controls.
Can this be done?
I've looked at some of the events associated with a textbox, but I haven't found anything that works.
Thanks for any help you can give.
Wayne
Is there a way to detect whether a user has begun typing in a textbox? Or whether, after typing something into it, they have erased what they have typed?
I have a Search form with a criteria value of type text that the user enters into a textbox. I also have other search criteria on the form (selected via combobox) that are mutually exclusive to the textbox criteria. (It wouldn't make sense to enter both types of criteria, and the form makes it clear that it's an either/or situation.) To that end, if the user enters text into the textbox and tabs out of the field, I disable the combobox fields to make it clear.
But I'd prefer to disable the combobox controls as soon as the user types the first character. Likewise, if they erase the data from the textbox I'd like to re-enable the combobox controls. The key is that I don't want to require that they tab out of the control to change the Enabled property of the combobox controls.
Can this be done?
I've looked at some of the events associated with a textbox, but I haven't found anything that works.
Thanks for any help you can give.
Wayne