D
DawnTreader
Hello All
i have a form where i have toggle buttons that i use to filter a query on
the form. the filtering works great, but there are niggly details having to
do with the caption of the buttons.
here is the button code:
Private Sub tglButton_Click()
Select Case tglButton
Case Null
Me.tglButton.Caption = "Show Those"
Case True
Me.tglButton.Caption = "Show These"
Case False
Me.tglButton.Caption = "Show Others"
End Select
Me.subform.Form.Requery
End Sub
the problem comes when it trys to change the caption. in the Null state the
caption doesnt change. it is like the button becomes "locked" from changes
even through code. so it will show the 2 other captions but not the third.
does anyone have any idea how to get around this or an idea of why this
happens? i tried to put a label on top of the button but that gets in the
buttons way. any help would be very appreciated.
i have a form where i have toggle buttons that i use to filter a query on
the form. the filtering works great, but there are niggly details having to
do with the caption of the buttons.
here is the button code:
Private Sub tglButton_Click()
Select Case tglButton
Case Null
Me.tglButton.Caption = "Show Those"
Case True
Me.tglButton.Caption = "Show These"
Case False
Me.tglButton.Caption = "Show Others"
End Select
Me.subform.Form.Requery
End Sub
the problem comes when it trys to change the caption. in the Null state the
caption doesnt change. it is like the button becomes "locked" from changes
even through code. so it will show the 2 other captions but not the third.
does anyone have any idea how to get around this or an idea of why this
happens? i tried to put a label on top of the button but that gets in the
buttons way. any help would be very appreciated.