rio
Registered User.
- Local time
- Today, 20:18
- Joined
- Jun 3, 2008
- Messages
- 124
hi.
Need some help with subform filter.
there is 1 table containing lab result data :
1. SAMPLE_NO
2. SAMPLING_DATE
3. DO
4. BOD
5. COD
6. PH
7. SS
I used combobox to filter the subform. and the code are :
the problem is when i make a filter :
BOD < 2 === It come out the data (see attachment)
BOD
10
13
100
So hopefully... any one can help me to solve this problem.
Thanks.

Need some help with subform filter.
there is 1 table containing lab result data :
1. SAMPLE_NO
2. SAMPLING_DATE
3. DO
4. BOD
5. COD
6. PH
7. SS
I used combobox to filter the subform. and the code are :
Code:
Private Sub cmdCari_Click()
Dim stDocName As String
Dim stLinkCriteria2 As String
Dim stLinkCriteria3 As String
Dim stLinkCriteria4 As String
Dim stLinkCriteria5 As String
stLinkCriteria2 = Me!Text1 & Me!Text3 & "'" & Me![Text2] & "'"
stLinkCriteria3 = Me!Text4 & Me!Text6 & "'" & Me![Text5] & "'"
stLinkCriteria4 = Me!Text7 & Me!Text9 & "'" & Me![Text8] & "'"
stLinkCriteria5 = stLinkCriteria2 & " And " & stLinkCriteria3 & " And " & stLinkCriteria4
Me.frmLabResult.Form.Filter = stLinkCriteria5
Me.frmLabResult.Form.FilterOn = True
End Sub
the problem is when i make a filter :
BOD < 2 === It come out the data (see attachment)
BOD
10
13
100
So hopefully... any one can help me to solve this problem.
Thanks.
