Aaswi
Programmer
- Apr 25, 2008
- 2
Hi to every one in the Forum.
My name is ALi and am new to the Forum. I have a problem with Filter in VBA when i try to execute the following code
----------------------------------
If RS1.RecordCount > 0 Then
X = "("
Do While Not RS1.EOF
X = X + "'" + RS1.Fields(0) + "'"
'MsgBox X
RS1.MoveNext
If Not RS1.EOF Then
X = X + ","
Else
X = X + ")"
End If
Loop
' MsgBox X
X = "EMPLOYEES IN " + X
Me.Filter = X
Me.FilterOn = True
' MsgBox X
End If
--------------------------
My name is ALi and am new to the Forum. I have a problem with Filter in VBA when i try to execute the following code
----------------------------------
If RS1.RecordCount > 0 Then
X = "("
Do While Not RS1.EOF
X = X + "'" + RS1.Fields(0) + "'"
'MsgBox X
RS1.MoveNext
If Not RS1.EOF Then
X = X + ","
Else
X = X + ")"
End If
Loop
' MsgBox X
X = "EMPLOYEES IN " + X
Me.Filter = X
Me.FilterOn = True
' MsgBox X
End If
--------------------------