If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Query By Form Criteria Problem(s),,maybe AND/OR issue
Hi Again {{sheepish wave}}
Using Access 2003 Querying Maintenance Jobs What I did: Created Query with desired fields Created Form based on query In header placed 6 Unbound fields (some text some combo) which either lookup or await input for query criteria I used OR for the six criteria in query design. Query returns info as expected if only 1 criteria is selected. If I use AND all or no records are returned. What I want: Results limited and based on any combination of the criteria. If anyone has any suggestions it would be most appreciated. Mary |
#2
|
|||
|
|||
in the criteria for each field in the query try and wite
like (nz(Forms![FormName]![FieldName],"*")) "FerryMary" wrote: Hi Again {{sheepish wave}} Using Access 2003 Querying Maintenance Jobs What I did: Created Query with desired fields Created Form based on query In header placed 6 Unbound fields (some text some combo) which either lookup or await input for query criteria I used OR for the six criteria in query design. Query returns info as expected if only 1 criteria is selected. If I use AND all or no records are returned. What I want: Results limited and based on any combination of the criteria. If anyone has any suggestions it would be most appreciated. Mary |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Query Only Creent Record? | Hulk | Running & Setting Up Queries | 10 | January 25th, 2005 06:39 PM |
Complex query criteria - desperate appeal | Ted Allen | Running & Setting Up Queries | 5 | November 17th, 2004 06:14 PM |
Form to Enter Report Criteria works, but Query won't run from Macr | BARKAROO | Using Forms | 1 | October 16th, 2004 08:13 PM |
Big number gives error! | Sara Mellen | Running & Setting Up Queries | 8 | October 11th, 2004 02:48 AM |
Display Parameter from Form on Report | sara | Setting Up & Running Reports | 10 | July 19th, 2004 04:54 PM |