Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2011, 07:34 AM
Authorized User
 
Join Date: Jul 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using IN syntax in a Filter

Hello there!

The following code [COLOR=blue !important][FONT=verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif][COLOR=blue !important][FONT=verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif]works[/FONT][/FONT][/COLOR][/COLOR] fine

G_StrWhere = "[Group]=" & G_Group_Code & " AND " & "[EntryDate]=" & SQLDate(G_Greg_Date)

Me.Filter = G_StrWhere
Me.FilterOn = True

I would like to get 2 Groups together in the first part using the syntax " IN"
e.g. (4,6 IN G_Group_Code)
Anyone knows how to do it?

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using IN syntax in a Filter ybg1 Access VBA 4 October 31st, 2011 02:52 PM
xpath query (filter) syntax problem? tclotworthy XSLT 4 February 1st, 2011 11:57 AM
Filter on Certain dates DianaTokatlidis Access 5 October 22nd, 2007 09:56 AM
Filter Help mcloum Classic ASP Databases 2 November 10th, 2005 05:40 PM
Filter Help mcloum BOOK: Beginning ASP 3.0 1 August 26th, 2005 03:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.