Re: Microsoft Jet Engine does not recognize <> as valid name or ex

Tech-Archive recommends: Fix windows errors by optimizing your registry



Yeah, well I always have trouble with them myself. So I guess they are one
of my many weak points.


"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E9081B23-0C97-4004-97E1-0B6143FDACBE@xxxxxxxxxxxxxxxx
Thanks, John
I will admit that crosstab queries are a weak point for me.

"John Spencer" wrote:

A crosstab has [<>] as the null column if you pivot on a field that has
null
values in the query.

I suspect that the column that is causing the problem is this one
IIf(IsNull([BLANK %]),1,(1)-[BLANK %]) AS REPORTED

I'm not sure what you are expecting that calculation to do. It might be
that you want
[1] +[2] +[3] +[4] +[5] + [Y]/[Total of Emplid]

Or
1 - ( [<>]/[Total Of Emplid] )

SELECT [Rating by tier_Crosstab].Tier
, [Rating by tier_Crosstab].[Total Of Emplid]
, [<>]/[Total Of Emplid] AS [Blank %]
, [1]/[Total Of Emplid] AS [1's]
, [2]/[Total Of Emplid] AS [2's]
, [3]/[Total Of Emplid] AS [3's]
, [4]/[Total Of Emplid] AS [4's]
, [5]/[Total Of Emplid] AS [5's]
, [Y]/[Total Of Emplid] AS [Y's]
FROM [Rating by tier_Crosstab];



"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3E59A4E6-1D2F-4C15-B87E-6D3C046DA025@xxxxxxxxxxxxxxxx
You have it coded as if <> is the name of a field. Is that what it is?

"kswan" wrote:

I am trying to count the number of ee's by rating including if there
are
ee's
with no rating.
I keep getting an error due to my query looking for <>
Should this be written a different way?

SELECT [Rating by tier_Crosstab].Tier, [Rating by
tier_Crosstab].[Total
Of
Emplid], IIf(IsNull([BLANK %]),1,(1)-[BLANK %]) AS REPORTED,
[<>]/[Total
Of
Emplid] AS [Blank %], [1]/[Total Of Emplid] AS [1's], [2]/[Total Of
Emplid]
AS [2's], [3]/[Total Of Emplid] AS [3's], [4]/[Total Of Emplid] AS
[4's],
[5]/[Total Of Emplid] AS [5's], [Y]/[Total Of Emplid] AS [Y's]
FROM [Rating by tier_Crosstab];






.



Relevant Pages

  • Re: Make field in report show zero and not blank
    ... Duane Hookom, ACCESS MVP, is kind of our resident guru on crosstab queries. ... Put Crosstab query and Duane's name in the ... > In the report I wrapped the control source in each text box with the Val ...
    (microsoft.public.access.reports)
  • Re: Access - On-line Tutorial/Learning
    ... Convert a Select Query to an Action Query in Access 2000 ... You can ignore the "Access 2000" in the titles of these articles. ... experiment with Crosstab Queries, for summarizing. ... Tom Wickerath, Microsoft Access MVP ...
    (microsoft.public.access.gettingstarted)
  • Re: "crosstab query as a subquery? how to do that?" and new question concerning parameters
    ... It WOULD somehow overcome my problem. ... number of columns in crosstab queries is not fixed. ... queries to be the source query for the Word document. ...
    (microsoft.public.access.queries)
  • Re: Similar crosstab queries on one report
    ... You can create multiple values by combining a crosstab and cartesian query. ... -Create a new table tblXtabColumns with a single field ... > queries on one report but am at a loss on how to do this ... > statements for the two crosstab queries. ...
    (microsoft.public.access.reports)
  • Re: Backwards database...
    ... There are methods that combine union and crosstab queries to get close to ... > I am helping some colleagues with an Access 2000 database and they ... > setting up the fields so that you have a single field called "hotel", ... So I have been asked if you can get a query ...
    (microsoft.public.access.queries)