Solved

Need to do a compound filter for a CRecordSet

Posted on 2000-04-25
2
207 Views
Last Modified: 2010-04-02
I want to filter on two different fields in a ODBC CRecordSet.  I was using the field m_strFilter, but don't know how to do a and/or type filter.

Please, any help would be really appreciated!!?!?!?!
0
Comment
Question by:dmiorio
2 Comments
 
LVL 1

Accepted Solution

by:
MT_MU earned 150 total points
ID: 2748802
Something like...

m_strFilter = "part_no > 50 AND part_no < 100";
0
 

Author Comment

by:dmiorio
ID: 2749081
Thanks - figured it out but really appreciate the help none-the-less.

Have a great one,
dawn
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

770 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