RE: Enter Parameter Value Issue when running query with 2 tables

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



I would first go back to your crosstab query and change the Column Heading
value to replace Nulls with some real value using Nz().

Then, I would search the web on Access/vba naming conventions. Find one that
meets your needs and stick to it. Most of us that have been around for a
while never use spaces, symbols, etc in any field, table, or other object
name. Tony Toews has some recommendations at
http://www.granite.ab.ca/access/tablefieldnaming.htm. There are many others.
--
Duane Hookom
Microsoft Access MVP


"kswan" wrote:

I have two queries that are being used in order to calculate a percentage.
When running the query there is a parameter value error looking for one of
the tables. The issue may be around null values but I don't know how to
resolve. The null values are needed in the output and the pecentage if
applicable.

There is also a field in the first query that gives the number and
percentage of completed records. Not sure if that is the issue.

count of 4-12 w Y_qry allows the percentage to be calculated.

Here is the SQL
SELECT [Rating by tier 4-12_Crosstab].Tier, [Rating by tier
4-12_Crosstab].[Total Of Emplid] AS [# of EE], IIf(IsNull([BLANK
%]),1,(1)-[BLANK %]) AS REPORTED, [Rating by tier 4-12_Crosstab].[<>],
[<>]/[count of 4-12 w y_qry].[Total Of Emplid] AS [Blank %], [1]/[count of
4-12 w y_qry].[Total Of Emplid] AS [1's], [2]/[count of 4-12 w y_qry].[Total
Of Emplid] AS [2's], [3]/[count of 4-12 w y_qry].[Total Of Emplid] AS [3's],
[4]/[count of 4-12 w y_qry].[Total Of Emplid] AS [4's], [5]/[count of 4-12
with y_qry].[Total Of Emplid] AS [5's], [Y]/[count of 4-12 with y_qry].[Total
Of Emplid] AS [Y's]
FROM [Rating by tier 4-12_Crosstab], [count of 4-12 w Y_qry];

Any help would be greatly appreciated.

.



Relevant Pages

  • Re: Figuring out what field is causing key violation on append
    ... Nz converts nulls to whatever you put as the second argument. ... Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia ... First try the query with just one field in the append query. ...
    (microsoft.public.access.queries)
  • Re: Median
    ... so the nulls may be being re-introduced to the ... Run your XPercentile function and your query against that. ... I have not personally used this median function... ... Candia Computer Consulting - Candia NH ...
    (microsoft.public.access.reports)
  • Re: Figuring out what field is causing key violation on append
    ... the fields to not allow nulls any longer. ... First try the query with just one field in the append query. ... .......(all other than key violations is 0) ...
    (microsoft.public.access.queries)
  • Re: MailMerge Query Discontinuity
    ... nulls, zeros and blanks. ... Neither Word nor MS Query seems to be an exception, ... > When the MailMerge Recipents form's Edit control is clicked, ... query result is displayed via a DDE link to Micrsoft Query. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: MailMerge Query Discontinuity
    ... when I run the query with QA or Access or MS Query there ... is the Doctor control table had a few rows added, growing in size from 60 to ... > CorStatDataOP.dbo.Pacemaker Pacemaker, ... >> nulls, zeros and blanks. ...
    (microsoft.public.word.mailmerge.fields)