Results 1 to 9 of 9

Thread: combobox.change event fires when form opens. [Resolved]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2004
    Location
    Huntington WV
    Posts
    49

    combobox.change event fires when form opens. [Resolved]

    I know that I can progam around this but still not quite sure why it happens. I have a project where a form has a combobox.change event that has code in it that gives the user a message that they are about to cause something to happen by changing the selection in the combo box. However, when the form opens the change event fires and the message box appears. The code is simple

    Private Sub cboBox1_change()
    msgbox "You just changed your selection"
    End Sub

    As the form opens the Message appears "You just changed your selection" and then after the user clicks ok the form opens. Why does the event Change fire as the form is opening? Is there a better way of handling this? Or do I just write come code to check to see if the form is open before the change event should occur? Thanks again for everyones help in the past. I continue to learn from this site.
    Mike
    Last edited by MIKEADKINS; Sep 17th, 2004 at 01:00 PM.

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