Solved

Need to do a compound filter for a CRecordSet

Posted on 2000-04-25
2
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

751 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