INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Report SQL Where In Select

Report SQL Where In Select

(OP)
I have a report, where the user can build the where statement using multi-select list boxes and a combo box, each to filter different fields. The combination of filters chosen create a where statement. The trick is that I need to follow some rules to make this report run correctly. I need to get the records where the main record source has the sub record in its records (where in select...)

I am not sure how to create this where in (select...where...) so that I can plug in the 3 list box filters and the combo filter. Normally I build a strSQL statement with an strCriteria for the where. I am having issues building the statement because of all of the joins in the SQL. I tried to make the SQL a query, and then plug in the strCriteria, but just not getting to the solution.

Wondering if anyone has ran into this type of need, and how they have handled it.

Thanks!

misscrf

It is never too late to become what you could have been ~ George Eliot

RE: Report SQL Where In Select

(OP)
Thanks, Duane. I'll give that a try.

misscrf

It is never too late to become what you could have been ~ George Eliot

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close