G
Guest
Hi, i have a form which has a list box which looks up values from a table. i
have a set of toggle buttons which apply a filter to the form, the only
problem is the list box does not update with the filtered results.
if it is any help i have made a screenshot of the form which can be found at
http://www.computingforum.co.uk/icewolf/screenshot.PNG
i have found some code which i thought might work, but it didnt seem to
work, the code was:
Private Sub myOptionGroup_AfterUpdate()
Dim sSQL As String
Select Case Me!myOptionGroup.Value
Case 1: sSQL = "SELECT........."
Case 2: sSQL = "SELECT........."
Case 3: sSQL = "SELECT........."
End Select
Me!lstMyList.RowSource = sSQL
End Sub
Any help would be greatly appreciated,
Yours,
Colin Field
have a set of toggle buttons which apply a filter to the form, the only
problem is the list box does not update with the filtered results.
if it is any help i have made a screenshot of the form which can be found at
http://www.computingforum.co.uk/icewolf/screenshot.PNG
i have found some code which i thought might work, but it didnt seem to
work, the code was:
Private Sub myOptionGroup_AfterUpdate()
Dim sSQL As String
Select Case Me!myOptionGroup.Value
Case 1: sSQL = "SELECT........."
Case 2: sSQL = "SELECT........."
Case 3: sSQL = "SELECT........."
End Select
Me!lstMyList.RowSource = sSQL
End Sub
Any help would be greatly appreciated,
Yours,
Colin Field