suburbanpsyco
Registered User.
- Local time
- Today, 14:34
- Joined
- Apr 18, 2011
- Messages
- 19
Hello
I am trying to filter my recordset based on a selection in a list box on my form. My original idea is
The line that is giving me problems is the if statement, for some reason this does not work. Pointers would be much apprciated. Also, is there a better way of doing this?
Cheers
I am trying to filter my recordset based on a selection in a list box on my form. My original idea is
Code:
For loopCounter = 1 To rstBoiler.RecordCount
If rstBoiler!boilerNumber = Me.lstBoiler Then
I Will be executing code here.
End If
rstBoiler.MoveNext
Next loopCounter
The line that is giving me problems is the if statement, for some reason this does not work. Pointers would be much apprciated. Also, is there a better way of doing this?
Cheers