Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5SCYea92251 for ; Thu, 28 Jun 2001 08:34:40 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5RE24a97632 for ; Wed, 27 Jun 2001 10:02:04 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5RDhaT23630 for pgsql-sql@postgresql.org; Wed, 27 Jun 2001 09:43:36 -0400 (EDT) (envelope-from news) From: "sbelow" X-Newsgroups: comp.databases.postgresql.sql Subject: filtering Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: <8ql_6.775$5d.347596@newshog.newsread.com> Date: Wed, 27 Jun 2001 13:43:32 GMT X-Complaints-To: Abuse Role , We Care Organization: Dundee Internet Services (dundee.net) To: pgsql-sql@postgresql.org X-Archive-Number: 200106/443 X-Sequence-Number: 3740 I'm using ' m_pSet->Open(AFX_DB_USE_DEFAULT_TYPE,"SELECT * FROM tblPMTasks WHERE [TaskDue] = 1"); to filter out certain records. I want to add a filter to the current one how can I go about this? Or should I reconstruct to a basic 'Open()' statement and use this example given from MSDN. CCustSet rsCustSet( NULL ); // Set the filter rsCustSet.m_strFilter = "state = 'CA'"; // Run the filtered query rsCustSet.Open( CRecordset::snapshot, "Customers" ); Thanks in advance for your help Steve