Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / February 2008

Tip: Looking for answers? Try searching our database.

Non MR's and Blanks to show

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
instereo911 - 06 Feb 2008 00:14 GMT
Good afternoon,

I have a table that shows the following text fields -

Date - Associate - Status - StatusCode - Method -
each of these fields are text fields (except for date is Date field)

I am trying to set up a query in design view to say the following:

For Date [parameter], group by associate, group by status (if the status does
not equal "ROUTED"), show only the statuscodes that are <>MR or BLANK.

My problem is the last statement. Basically what is happening when I say
"show me the non MR's" it is pulling all the non MR's but also disregarding
the blank fields. It is just pulling data that has something in it but i
don't want that.. i won't both... Non MR and BLANKS. The blank fields have no
data at all in em'. No Null, No 0, No space.

I am not sure how to pursue this but it is killing me.. probably the easiest
thing. Does that make sense..

Thank you everyone.

Thanks everyone.
KARL DEWEY - 06 Feb 2008 00:28 GMT
Try this ---
SELECT instero911.Date, instero911.Associate, instero911.Status,
instero911.StatusCode, instero911.Method
FROM instero911
WHERE (((instero911.Date)=[Enter parameter]) AND
((instero911.Status)<>"ROUTED") AND ((instero911.StatusCode)<>"MR" And
(instero911.StatusCode) Is Null)) OR (((instero911.Date)=[Enter parameter])
AND ((instero911.Status)="ROUTED"));

Signature

KARL DEWEY
Build a little - Test a little

> Good afternoon,
>
[quoted text clipped - 20 lines]
>
> Thanks everyone.
instereo911 - 06 Feb 2008 17:50 GMT
Thank you both.. It worked. I knew it was easy.. - Maybe I should go to beg
access school :)

Thanks again

>Try this ---
>SELECT instero911.Date, instero911.Associate, instero911.Status,
[quoted text clipped - 10 lines]
>>
>> Thanks everyone.
John W. Vinson - 06 Feb 2008 17:26 GMT
>Good afternoon,
>
[quoted text clipped - 7 lines]
>For Date [parameter], group by associate, group by status (if the status does
>not equal "ROUTED"), show only the statuscodes that are <>MR or BLANK.

Use a criterion on statuscode of

(<> "MR" OR IS NULL)

            John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.