Duane,
I'm not sure what you mean by ranking query. the table look like this:
SIRid - text (Foreign key)
PersonNo - byte (I think this may be the ranking field)
PersonType - Byte (1= Patient, 2= Visitor, 3= Staff, 4= Other)
PCReportingParty - Yes/No
.
.
.
PCSuspect - Yes/No
FName - text (First Name)
LNmae - Text (Last Name)
RAddress - Text (Resadence Address)
BAddress - Text (Bussness Address)
Phone1 - Double
Phone2 - Double
Discription - Text
The sub report's SQl is: SELECT * FROM tblSirPeople WHERE PersonNo < 4
The Master-Child fields is SIRid.
I need the 1st Page of the Master report to print 3 Person Blocks even if
there are more or less people than three. In other words, if there are no
people, for what ever reason, I need the report to print three person blocks.
Currently I have the lines, boxes and labels on the master report with a
subreport on top. I don't like this set up. It seems shaky to me. The
SIRid and PersonNo fields do not print (They only exist for ranking and
linking)
thanks
:
There are a large number of posting regarding ranking queries that would
number your persons records from 1 to whatever for each SIRid which I expect
is your foreign key to your main table.
If you can't find info on a ranking query, come back with your table and
signficant field names as well as data types.
--
Duane Hookom
Microsoft Access MVP
:
Duane,
I'm not sure what you mean. Could you elaborate a little more. This may
help.
The table fields look like this: SIRid, PersonNo, FirstName...... The
incident report is alowed to have more than 3 people but the PersonNo > 3
will be on another page at the end of the report.
Thankyou for your responses
:
I would create a ranking column in the subreport's record source to number
the "people" records 1, 2, & 3. Then I would create a table of numbers with
numbers 1, 2, & 3. Add this table to the subreport's record source with a
join that includes all the records from the table of numbers. This will
assure there are always 3 records in the subreport.
--
Duane Hookom
Microsoft Access MVP
:
Hello,
I have a report for printing Security Incident Reports. On the first page
there is a fixed three slots for up to three people. I need to have all
three slots print even if there are less than three people in the incident.
I have the data for people stored in a subtable. Any ideas are welcome.
Thank you