Aug 17, 2005 #1 tonioJ Programmer Oct 7, 2002 90 PH I want to filter my recordset using IN clause is it possible? The filter should be like the SQL statement below. Select * from employees where emp_no in (1,2,3,4,5)
I want to filter my recordset using IN clause is it possible? The filter should be like the SQL statement below. Select * from employees where emp_no in (1,2,3,4,5)
Aug 17, 2005 #2 Ruffnekk Programmer Aug 2, 2005 249 DE The SQL statement you provided seems to be correct: SELECT * FROM [employees] WHERE [emp_no] IN (1,2,3,4,5); So yes, it's possible Regards, Ruffnekk --- Is it my imagination or do buffalo wings taste just like chicken? Upvote 0 Downvote
The SQL statement you provided seems to be correct: SELECT * FROM [employees] WHERE [emp_no] IN (1,2,3,4,5); So yes, it's possible Regards, Ruffnekk --- Is it my imagination or do buffalo wings taste just like chicken?
Aug 17, 2005 Thread starter #3 tonioJ Programmer Oct 7, 2002 90 PH Thanks for your reply. so how will i do it in ADO using filter? just like. rs.filter = "emp_no IN (1,2,4,6) i'm getting an error with this statement in VB. Upvote 0 Downvote
Thanks for your reply. so how will i do it in ADO using filter? just like. rs.filter = "emp_no IN (1,2,4,6) i'm getting an error with this statement in VB.
Aug 17, 2005 #4 JerryKlmns IS-IT--Management Feb 7, 2005 2,062 GR rs.filter = "emp_no =1 Or emp_no = 2 Or emp_no = 4 Or emp_no = 6" Upvote 0 Downvote