A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query By Form Criteria Problem(s),,maybe AND/OR issue



 
 
Thread Tools Display Modes
  #1  
Old May 16th, 2005, 03:49 PM
FerryMary
external usenet poster
 
Posts: n/a
Default 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  
Old May 16th, 2005, 07:47 PM
Ofer
external usenet poster
 
Posts: n/a
Default

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

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 11:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.