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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Crosstab query dynamic columns ala Duane Hookom



 
 
Thread Tools Display Modes
  #11  
Old July 30th, 2009, 05:56 PM posted to microsoft.public.access.reports
javablood
external usenet poster
 
Posts: 84
Default Crosstab query dynamic columns ala Duane Hookom

Got it!!! I used a combination of both of your suggestions:

=IIf(Nz([A]),Sum(IIf((IsNumeric([A])),Val([A]),0)))

and it does what I need. Thanks so much!!!
--
javablood


"John Spencer" wrote:

Try
=Sum(IIF(IsNumeric([Result],Val([Result]),Null))

That should sum only results that can be interpreted as numbers. So Nulls are
not numeric and "25U" is not numeric and "" is not numeric and therefore none
of them get summed.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Duane Hookom wrote:
Your dates should actually be columns with names like [A], [b], etc. Are you
unable to sum these columns in group or report footer sections? Did you try
use something like:
=Sum(Val(Nz([A],0)))

I'm not understanding what you want to do with Result = "25U".


 




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 08:00 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.