PC Review


Reply
Thread Tools Rate Thread

2 independent criteria

 
 
Rubem
Guest
Posts: n/a
 
      4th May 2010
Hi,

I have a query with the following fields: Date, Part Number, description,
etc..
I need a 2 criteria.. 1 for Date and 1 for Part Number and I want them to be
independent. In another words, if I want only a report in a specific range I
would enter the dates or if I just want a report with only the part number I
would enter the part number or if I need a report with both data, I would
enter both data.

Any suggestion?

Thank you for your help.

Rubem
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      4th May 2010
Take a look at this article:
Search criteria
at:
http://allenbrowne.com/ser-62.html

It explains how to set up a form where the user can enter whichever criteria
they want, and you build a filter string from only the boxes where they
entered something. The filter can then be applied to a form or to a report.

If you don't want to go that way, the last part of the article explains how
to design the WHERE clause of the query so you can do the whole thing in a
query if you must go that route.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Rubem" <(E-Mail Removed)> wrote in message
news6C82DBD-D5C9-402F-8D63-(E-Mail Removed)...
> Hi,
>
> I have a query with the following fields: Date, Part Number, description,
> etc..
> I need a 2 criteria.. 1 for Date and 1 for Part Number and I want them to
> be
> independent. In another words, if I want only a report in a specific
> range I
> would enter the dates or if I just want a report with only the part number
> I
> would enter the part number or if I need a report with both data, I would
> enter both data.
>
> Any suggestion?
>
> Thank you for your help.
>
> Rubem


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 independent criteria in a query Rubem Microsoft Access 2 5th May 2010 03:15 PM
2 independent criteria in query Rubem Microsoft Access 2 5th May 2010 02:33 PM
How to fix size of frame independent of rsolution of sreen or bowser independent. gujarsachin2001@gmail.com Microsoft Dot NET 1 25th Feb 2007 11:55 PM
Multiple Independent Criteria Query Jason G Microsoft Access Queries 1 28th Nov 2006 03:41 AM
Re: MM2 Is Independent Alan Windows XP MovieMaker 0 1st Jul 2004 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:40 PM.