Thanks, I will try to show you a cut down of the tables data structure
etc
...
Tables:
[DealerClaims]
ClaimNo
LabourPD
PartsPD
SubletPD
PartialLabour
PartialParts
PartialSublet
[DealerClaimsIssues]
ClaimNo
IssueCode
[IssueCodes]
IssueCode
Result
So, you have a claim header record which has claim values stored in
DealerClaims. You then have a one to many relationship with
DealerClaimIssues, which stores all the issues found with a claim. Each
Issue
you can apply is stored in the table IssueCodes and has a result (0-5)
against each individual issue.
At the end of an audit, the Claims have a MaxResult (Level), which is
the
highest Issue Result assigned to the claim. The Labour, Parts and
Sublet
values of the claim get assigned to this level on the report. BUT, if
there
are any values entered in the Partial amounts fields then a 2nd level
for
that claim is applied. This is done via queries, I use the MaxResult to
find
the 2nd highest level using two different queries and I then union the
queries together to give you the Claim financials by level. Each claim
can
have one OR two levels at the most.
eg you could have issues against a claim with the levels (Result)
4,4,4,3,3,2,2,1 etc. The Claim 123456 has values of
Labour = 200, Parts = 100, Sublet = 50
PartialLabour = 100, Parts 0, Sublet = 0
So in this example Claim 123456 will appear in the report once under
the
Level heading of 4, but then under the claim header you will have two
lines
of values - 1 showing 200, 100 and 50 against level 4. 2nd line showing
100,
0 and 0 against level 3. Then under the levels breakdown of finances
you
have
all the Issues listed that were found on the claim.
The main report is grouped on Level first (MaxofResult header), then
Claim
No (ClaimNo header). The Claim details are in the Claim header group.
The financials (labour etc) and the Issues are two seperate subreports
linked to the ClaimNo on the report.
So for this example you would get:
Level 4.
Claim 123456 - details
Level 4. 200, 100, 50
Level 3. 100, 0, 0
Issues - no customer signature found etc etc
Then you would get the next Claimno listed if any more under level 4 OR
you
would get Level 3 heading and the Claimno's found under this max level
heading. etc etc.
Each claim only ever appears once on the report, under its Max result
heading.
The summary of the report needs to be all the values grouped by levels
0-5
(therefore both full and partial payments added together per level). I
can
do
this successfully via a subreport in the report footer, but this is
what
will
not print and produces the error. I have tried to do it by not using
another
subreport, but I cant get it to show the levels and totals correctly.
I hope this is clearer? Sorry it is not very easy to explain...
:
Sample data and a description of the tables and relationships may
help,
as I
really don't understand the situation you are describing.
No, that is the prob. The main report is grouped first by Level and
then
ClaimNo. The subreport with the problem is a final summary which is
just
grouped on the level and does not include a claimno ref.
Although I have tried changing this so it does inc it and linking it
properly etc but the error still occurred. I think it might be
because
of
the
structure of the main report - it has Level 5 claims first listed on
the
report, with each claim detail shown below. But within a claim it
can
have
levels 5 and level 4 for example. The claim appears under level 5
but
it
shows the finances for both levels 5 and 4. Hence I am struggling to
do
a
summary by summing these values and I have done it in a subreport...
Sorry this prob confuses and doesn't make sense. I will post data as
an
example if that will help u try to understand?
:
If the subreport shows issues per claim, is it not based on a
linked
table?
If it is based on a linked table, is the subreport control linked?
Alternatively, you could base the report on a query that includes
the
main
Claims table and the related Issues table. Group by Claim, with
Claim
information in the group header.
This has been happening for a few days now, we all shutdown our
machines
every night when we leave work. Tried compacting and repairing
database
when
it first happened but no joy. If I delete the subreport it works
ok.
It is a complicated report, the message formatting page press
ctrl
break
to
stop appears for a short while before the report is first
displayed
when
run.
Yes sorry error number is 3048 - it doesn't tell you unless you
press
the
Help button.
--
Thanks in advance for any help.
Sue
:
I think Bruce was looking for the error number, which I think is
3048,
at
least that's the one I've been looking at. Try rebooting all
machines
connected to the server. While they are rebooting, make sure all
the
connections are closed to the database. If any are open, boot
them
off.
Delete the LDB file on the server before reconnecting any
databases
to
the
server.
If this is all happening on a single machine, just try rebooting
and
deleting any LDB files left. Repair and compact the database
before
trying
to run the report again.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
Sorry.. it is the subject of this msg. Error: Cannot open any
more
databases.
From reading forums etc it looks like it is to do with number
of
connections
to database or something. I do have linked tables whch I
believe
makes
this
issue more likely to occur but I always believed this was the
best
design
for
shared db's.
It is a complicated report I am trying to print, it has three
subreports
and
the final subreport it is trying to print which causes the
error
is
based
on
a union query. Tried simplyfying it as much as poss, but I
can't
get
rid
of
the error and it won't print the last subreport. Possibly
because
this
subreport does not have child/master link to the main report,
but
it
doesn't
work properly if I add a relationship. Odd that it looks ok
when
you
preview,
it only errors if you try to print it.
I can either print it as a seperate report - but then I don't
get
continuous
page numbers - unless anyone knows how to start a report page
number
based
on
the last page number of another report?
Or I will have to try and store these values in a temp table
maybe
and
try
this as the recordsource for the final subreport.
Any suggestions? Thanks...
BruceM" wrote:
Any question about an error needs to be specific. What error
are
you
getting?
message
Hi, we have SP3 installed so should be ok for that issue I
think?
This is driving me potty... :-(
:
Have a look at the following Microsoft KB article:
http://support.microsoft.com/kb/890931/