Results 1 to 5 of 5

Thread: [RESOLVED] onclick event

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    66

    Resolved [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?

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    66

    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.

  4. #4
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    66

    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
  •  



Click Here to Expand Forum to Full Width