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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Criteria in Querry to include All and Empty Field



 
 
Thread Tools Display Modes
  #11  
Old March 1st, 2010, 05:48 AM posted to microsoft.public.access
Tom Ventouris[_3_]
external usenet poster
 
Posts: 24
Default Criteria in Querry to include All and Empty Field

Thanks. I learned this one the hard way.


"John W. Vinson" wrote in message
...
On Sat, 27 Feb 2010 22:26:01 -0800, Tom Ventouris
wrote:

Thank you. I see, now, the significance of putting the criteria in the SQL
statement. It's all working.

"KenSheridan via AccessMonster.com" wrote:

This is why its much easier to write (and save) the query as SQL; you
just
tack each parenthesised OR operation together in a set of AND
operations:


Just one warning: if you carefully construct a beautiful such
multicriterion
query in SQL... and then open it in Query Design view... Access will turn
it
into a total mess. It may in fact cease to work correctly, and it will
totally
scramble your SQL (adding a calculated field for each criterion, etc.)
So...
create it in SQL and *NEVER* open it in the query design grid!
--

John W. Vinson [MVP]


 




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


All times are GMT +1. The time now is 11:31 PM.


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