Okay. I have a form (sfrmS1_Awards) with a list box on it (lstAwards) and a toggle button (tglViewAwards). This form is used for the processing of awards. If the award has been approved, a date is entered in a field (AWARD_SIGN_DATE). The code for my toggle button does two things, (I’d like for it to do three).
Private Sub tglAwardsViewed_Click()
If Me.tglAwardsViewd = True Then
Me.tglAwardsViewed.Caption = “Now Viewing Completed Awards”
Forms!sfrmS1_Awards!lstAwards.RowSource = (Lengthy sql statement here, I’ve removed it, however it works. Basically, if the award has been signed, it shows in the list box)
Else
Me.tglAwardsViewed.Caption = “Now Viewing Pending Awards”
Forms!sfrmS1_Awards!lstAwards.RowSource = (Lengthy sql statement here, I’ve removed it, however it works. Basically, if the award has NOT been signed, it shows in the list box)
End If
Me!lstAwards.Requery
End Sub
So you can tell the things my toggle button does when it is clicked. Is it possible to set the form’s filter equal to the filters I am applying to the list box? My end goal is to keep users from using the mouse wheel/pgup/down keys to cycle through records. Is what I”m doing possible or am I stuck with using the cycle property?