PC Review


Reply
Thread Tools Rate Thread

Cross-tab quesry

 
 
=?Utf-8?B?UGV0ZXI=?=
Guest
Posts: n/a
 
      2nd Sep 2006
I wish to perform calculations on the results of a crosstab query. This
raises two issues:
1) how to convert blank cells into zeros
2) how to store the cross tab table in a way that i can run another query
from it
 
Reply With Quote
 
 
 
 
David Cox
Guest
Posts: n/a
 
      3rd Sep 2006
I am very rusty, but try:

1) iif(isnull([field1]),0,[field1])

2) Just use the crosstab query as an input to the query builder.



"Peter" <(E-Mail Removed)> wrote in message
news:15B963E7-7DE2-428C-8620-(E-Mail Removed)...
>I wish to perform calculations on the results of a crosstab query. This
> raises two issues:
> 1) how to convert blank cells into zeros
> 2) how to store the cross tab table in a way that i can run another query
> from it



 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      3rd Sep 2006
Re #1, see:
Crosstab query techniques
at:
http://allenbrowne.com/ser-67.html#DisplayZero

Re #2, create another query, and in the Add Table dialog, choose the Queries
tab to add the crosstab query as a "table".

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Peter" <(E-Mail Removed)> wrote in message
news:15B963E7-7DE2-428C-8620-(E-Mail Removed)...
>I wish to perform calculations on the results of a crosstab query. This
> raises two issues:
> 1) how to convert blank cells into zeros
> 2) how to store the cross tab table in a way that i can run another query
> from it



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple clauses in quesry Mo Microsoft Access Queries 3 7th Nov 2008 02:33 PM
sql quesry statements tucker Microsoft Access VBA Modules 0 31st Aug 2008 03:10 PM
sub report and non-fixed column cross tab quesry iccsi Microsoft Access Reports 10 19th Jun 2008 02:36 PM
Quesry criteria stacy Microsoft Access Queries 3 25th Jan 2008 08:50 PM
Access Quesry =?Utf-8?B?ZGFuYXBw?= Microsoft Access Reports 1 14th Apr 2007 12:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:04 PM.