+ Reply to Thread
Results 1 to 2 of 2

How to stop _change event for objects pre-loaded with information

  1. #1
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    How to stop _change event for objects pre-loaded with information

    Hello Gurus,

    I have a query regarding the combobox_change event.

    I use a combobox which is initialized with data from the DB. The same combo box has a _change event which is being triggered even when I try to pre-load the data from database.

    Combobox code when the form is initiated.
    Please Login or Register  to view this content.
    This updates the combobox with the text from RslAudit field and also updates the label beside it with the "Audit Date."

    Combobox _change event code.
    Please Login or Register  to view this content.
    I also have the above code that is triggered when the Audit combobox is changed. When it is selected as "Audit Confirmed", it asks for "Audit Date." (which is supposed to be pre-filled from database first time).

    How can I overcome this?

    Regards,
    Ravi.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to stop _change event for objects pre-loaded with information

    Suggest setting the Application.EnableEvents flag at appropriate places in the code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1