|
-
Jun 23rd, 2006, 11:49 AM
#1
Thread Starter
Lively Member
[RESOLVED] onclick event
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?
-
Jun 23rd, 2006, 02:31 PM
#2
Re: onclick event
When, exactly, is it not working?
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Jun 27th, 2006, 07:46 AM
#3
Thread Starter
Lively Member
Re: onclick event
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.
-
Jun 27th, 2006, 08:01 AM
#4
Re: onclick event
You should use the _Change event of the TabStrip or MultiPage object, rather than the _click event
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Jun 27th, 2006, 08:14 AM
#5
Thread Starter
Lively Member
Re: onclick event
Looks like it works. Thanks.
Do you know why the onclick would not work in my situation?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|