DB Combo doesn't fire Change event? 
Author Message
 DB Combo doesn't fire Change event?

I'm trying to use a DBCombo box that will change the Bound Text each time
I change the List Field (the default setting for the DBCombo).

However, I should expect that if I select a different item from the combo
box
the Change SHOULD fire but it never does!  WHY NOT!  As a work around, I
had to put my code in the MouseUp event and do it that way... (which does
work).
This is inefficient though, because this will trigger an event each time the
list is clicked on...too many changes are done to the other Data Controls
then!

How does the DBCombo box work?  and Why doesn't it ever show me a Message
box with "Hello World"?

------>

Private Sub dbcFirmType_Change()
    MsgBox ("Hello World")
End Sub

Private Sub dbcFirmType_MouseUp(Button As Integer, Shift As Integer, x As
Single, y As Single)
    If (dbcFirmType.BoundText <> "") Then
        dtaFirm.RecordSource = "SELECT [FirmName], [FirmID] FROM tblFirm
WHERE FirmTypeID = " & dbcFirmType.BoundText & " ORDER BY [FirmName]"
        dtaFirm.Refresh
        dbcFirm.Refresh
    End If
End Sub

Dante

please respond through email.

Thanks.



Tue, 08 Aug 2000 03:00:00 GMT  
 DB Combo doesn't fire Change event?

NEVERMIND!  I read the HELP...

I'll use the CLICK EVENT and check to see if the user
clicked in the dbcAreaList!

Dante

THANKS ANYHOW

Quote:

>I'm trying to use a DBCombo box that will change the Bound Text each time
>I change the List Field (the default setting for the DBCombo).

>However, I should expect that if I select a different item from the combo
>box
>the Change SHOULD fire but it never does!  WHY NOT!  As a work around, I
>had to put my code in the MouseUp event and do it that way... (which does
>work).
>This is inefficient though, because this will trigger an event each time
the
>list is clicked on...too many changes are done to the other Data Controls
>then!

>How does the DBCombo box work?  and Why doesn't it ever show me a Message
>box with "Hello World"?

>------>

>Private Sub dbcFirmType_Change()
>    MsgBox ("Hello World")
>End Sub

>Private Sub dbcFirmType_MouseUp(Button As Integer, Shift As Integer, x As
>Single, y As Single)
>    If (dbcFirmType.BoundText <> "") Then
>        dtaFirm.RecordSource = "SELECT [FirmName], [FirmID] FROM tblFirm
>WHERE FirmTypeID = " & dbcFirmType.BoundText & " ORDER BY [FirmName]"
>        dtaFirm.Refresh
>        dbcFirm.Refresh
>    End If
>End Sub

>Dante

>please respond through email.

>Thanks.



Tue, 08 Aug 2000 03:00:00 GMT  
 DB Combo doesn't fire Change event?


Quote:
>NEVERMIND!  I read the HELP...

>I'll use the CLICK EVENT and check to see if the user
>clicked in the dbcAreaList!

>Dante

>THANKS ANYHOW

Hmm.. there is a small problem there though :((

If you click on the drop down button and keep the mouse pressed down and
release it over the choice it will say the user clicked on the drop down
button instead of the dbcAreaList..

I had the same problem and I still use the mouse up event :((

Erwin van der Koogh
University of Twente

Please remove "onzin" from above address



Thu, 10 Aug 2000 03:00:00 GMT  
 DB Combo doesn't fire Change event?

On Fri, 20 Feb 1998 21:28:15 GMT, "D. Dante Lorenso"

Quote:

>I'm trying to use a DBCombo box that will change the Bound Text each time
>I change the List Field (the default setting for the DBCombo).

>However, I should expect that if I select a different item from the combo
>box
>the Change SHOULD fire but it never does!  WHY NOT!

Great question. I've never seen the Change event work on any of those
damned list-type controls.  What is the point of it, anyway?


Sat, 12 Aug 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Combo Box Change Event Doesn't Work

2. Timer Event won't fire when app doesn't have focus

3. Timer Event won't fire when app doesn't have focus

4. Item_Sent event doesn't always fire??

5. VBScript Item_Open event doesn't always fire?

6. Application_Startup event doesn't fire

7. item_open event doesn't fire

8. BeforeNavigate2 Event Doesn't Fire in VB.NET

9. ListView event doesn't fire when set programmically

10. LostFocus event doesn't fire

11. Custom event doesn't fire!

12. Webbrowser control doesn't fire NavigateComplete2 after DocumentComplete event

 

 
Powered by phpBB® Forum Software