?
Solved

CRecordSet m_strFilter <, > ???

Posted on 1998-05-12
2
Medium Priority
?
474 Views
Last Modified: 2013-11-20
It is possible to Filter records between certain dates with the m_strFile, if so, how? if not, how?
0
Comment
Question by:lucidity
2 Comments
 
LVL 4

Accepted Solution

by:
piano_boxer earned 80 total points
ID: 1310091
Say you have a date/time field called time you would filter records the following way:

CMySet set;
set.m_strFilter = "(time >= #8/21/1997#) AND (time < #8/27/1997#)";
set.Open();
....

It will return all records from 8/21/1997 to and including 8/26/1997.
0
 
LVL 2

Author Comment

by:lucidity
ID: 1310092
A milllion thanks my friend
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question