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  

Parameter Query Null Response Error



 
 
Thread Tools Display Modes
  #1  
Old July 12th, 2009, 11:38 AM posted to microsoft.public.access.queries
Bruister via AccessMonster.com
external usenet poster
 
Posts: 10
Default Parameter Query Null Response Error

I have some parameter queries in which I enter a [Month] as a criteria. I
also want to be able to return all records if I want. I have seen the
instruction on adding an OR line with Like [Month] Is Not Null under the
original criteria. I run this from design view and it works as it should but
the second OR line statement does not save on exiting the query. It has
vanished when I go back in to check. What have I done wrong?

--
Message posted via http://www.accessmonster.com

  #2  
Old July 12th, 2009, 12:09 PM posted to microsoft.public.access.queries
Bruister via AccessMonster.com
external usenet poster
 
Posts: 10
Default Parameter Query Null Response Error

Bruister wrote:
I have some parameter queries in which I enter a [Month] as a criteria. I
also want to be able to return all records if I want. I have seen the
instruction on adding an OR line with Like [Month] Is Not Null under the
original criteria. I run this from design view and it works as it should but
the second OR line statement does not save on exiting the query. It has
vanished when I go back in to check. What have I done wrong?


I meant to say Like [Month] Is Null. I have entered it correctly but still
does not save!

--
Message posted via http://www.accessmonster.com

  #3  
Old July 12th, 2009, 12:58 PM posted to microsoft.public.access.queries
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Parameter Query Null Response Error

Like [Month] Is Null won't result in valid SQL. Assuming you've got a field
named, say, TransactionMonth in your table, put

Like [Month] Or ([Month] Is Null)

as the criteria under it.


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Bruister via AccessMonster.com" u50445@uwe wrote in message
news:98f5b6aa990d0@uwe...
Bruister wrote:
I have some parameter queries in which I enter a [Month] as a criteria. I
also want to be able to return all records if I want. I have seen the
instruction on adding an OR line with Like [Month] Is Not Null under the
original criteria. I run this from design view and it works as it should
but
the second OR line statement does not save on exiting the query. It has
vanished when I go back in to check. What have I done wrong?


I meant to say Like [Month] Is Null. I have entered it correctly but still
does not save!

--
Message posted via http://www.accessmonster.com



 




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 10:14 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.