I have a form where I am tyring to have some action occur when the mouse clicks on that object....onclick Sub.
Is it odd that the onclick Sub does not always work?
Printable View
I have a form where I am tyring to have some action occur when the mouse clicks on that object....onclick Sub.
Is it odd that the onclick Sub does not always work?
When, exactly, is it not working?
What I have are tabs (tab control). Each tab has a subform and each subform displays a given record of a different table (for data entry).
Each table, in each tab are related. So if I am currently on ID=1 on the header tab, I want the other tabs to be on the same ID/record.
I tried to accomplish this by the following. Say I have three tabs: Header, Observation and Action. At form startup, all tabs are at ID=1...default.
Then, for some reason, the user moves to another ID on the Header Tab to do some edits....e.g., ID=99. If the user selects one of the other tabs, I tried to code the tab onclick event to refresh the current (or newly selected tab) with the ID=99.
The problem is, whenever I select/click the tab, the onclick event does not get activated/enacted as expected. Sometimes it works, most times it does not.
You should use the _Change event of the TabStrip or MultiPage object, rather than the _click event
Looks like it works. Thanks.
Do you know why the onclick would not work in my situation?