Query: solve rate, contains:
1
Field: NAME
Table: input data
Total: Group by
sort:
Show:
Criteria: Like "*" & [ENTER NAME] & "*"
or:
2
Field: MPI CASE NUMBER
Table: input data
Total: Count
sort:
Show:
Criteria:
or:
3
Field: Expr1: MPI CASE NUMBER
Table: input data
Total: Sum
sort:
Show:
Criteria:
or:
Query: solve rate 2, contains:
1
Field: NAME
Table: input data
Total: Group By
sort:
Show:
Criteria: Like "*" & [ENTER NAME] & "*"
or:
2
Field: PERSON
Table: input data
Total: Group By
sort:
Show:
Criteria: "UNKNOWN"
or:
3
Field: MPI CASE NUMBER
Table: input data
Total: Count
sort: Ascending
Show:
Criteria:
or:
Query: solve rate computation, contains:
1
Field: Expr2: ([Solve Rate]![CountOfMPI CASE NUMBER]-Nz([Solve Rate
2]![CountOfMPI CASE NUMBER],0))/([Solve Rate]![CountOfMPI CASE NUMBER])
Table:
Total: Group by
sort:
Show:
Criteria:
or:
2
Field: NAME
Table: solve rate
Total: Group by
sort:
Show:
Criteria:
or:
input data table contains
MPI CASE NUMBER DATE RECEIVED PERSON NAME
MPI-0001-2005 01-Jan-05 MARTINEZ, JOSEPH FOX
MPI-0002-2005 03-Jan-05 UNKNOWN JONES
MPI-0003-2005 01-Jan-05 JOHNSON, TIM A. FOX
MPI-0004-2005 03-Jan-05 UNKNOWN JONES
MPI-0005-2005 01-Jan-05 MARTINEZ, ROSEMARY FOX
MPI-0006-2005 03-Jan-05 KLEIN, MARTIN E. JONES
MPI-0007-2005 04-Jan-05 MARSHALL, TINA A. JONES
MPI Case Number is primary key duplicates not allowed
Query: solve rate2, does not give a result if FOX is found in the name
column of Table: input data and "UNKNOWN" is not found in person field of
Table: input data. It does give a result of 50% if "Jones" is found in name
column and "UNKOWN" is found in the person column, which is the desired
result.
If I enter the name JONES in Query: solve rate computation, I get a
percentage result of 50%, if I enter the name Jones in Query: solve rate
computation, I get no result. If the word “UNKNOWN†does not appear in the
person column but FOX appears in the name column, of Table: input data, the
desired result would be 100%.
Van T. Dinh said:
Post details of your Tables and the SQL of all the relevant Queries. I
can't see your database and can only guess from what you described on the
post.
--
HTH
Van T. Dinh
MVP (Access)
terryh70 said:
That did not solve my problem,I get the same result as before, but I think
it
clarified where my problem lies and how to fix it when I can fix the
underlying problem in solve rate2 query.
The solve rate 2 query only gives a result of how many records contain
"UNKNOWN". and does not give any result if their are no "UNKNOWN" the
query
solve rate 2 contains the following:
1
Field: PERSON
Table: input data
Total: Group By
sort:
Show:
Criteria: Like "*" & [ENTER PERSON] & "*"
or:
2
Field: PERSON
Table: input data
Total: Group By
sort:
Show:
Criteria: "UNKNOWN"
or:
3
Field: CASE NUMBER
Table: input data
Total: Count
sort: Ascending
Show:
Criteria:
or:
which only gives me a result if "UNKNOWN" is found but does not give a
result if "UNKNOWN" is not found