I am working with a relational database that has One master table and four supporting tables that track info of Victims of crime (the relation key is a unique number assigned to the victim from the master table)
The supporting tables capture involved persons (defendant / next of kin / guardian / witness / etc...) (this is one table)
Another table (events) keeps sequential records of the case as it goes through the criminal justice system
Yet another table (narrative) is used by our counselors to make notes as the case progresses.
My problem:
I'm trying to develope a report which will produce a summary of these things for the counselors use. Most of the info comes from the master table (and that works just fine). The challenge comes from trying to extract info from the supporting tables. Example: in the persons table I would like to pull (to the beginning of the report) the info for the next of kin (for a deceased victim) or guardian (for a child victim). These data elements may have been captured at place 2 or place 200 in this table. While I have been able to write a formula to call this info out, Crystal places a blank line in details for every child record before the "hit" that does not meet the criteria of my formula. This problem is compounded by the fact that I had to place all of the summary info in the report header and the notes (from the narrative table) in details (so the notes would stay together). I tried to place this formula in details A and the notes in details B and suppress details A when the criteria was not met, but the "hit" shows up on page 6 of a 9 page and there after.
I hope I've made some sense with all this, and further, I hope someone can shead some light on this.
Thanks
James
Network Admin
The supporting tables capture involved persons (defendant / next of kin / guardian / witness / etc...) (this is one table)
Another table (events) keeps sequential records of the case as it goes through the criminal justice system
Yet another table (narrative) is used by our counselors to make notes as the case progresses.
My problem:
I'm trying to develope a report which will produce a summary of these things for the counselors use. Most of the info comes from the master table (and that works just fine). The challenge comes from trying to extract info from the supporting tables. Example: in the persons table I would like to pull (to the beginning of the report) the info for the next of kin (for a deceased victim) or guardian (for a child victim). These data elements may have been captured at place 2 or place 200 in this table. While I have been able to write a formula to call this info out, Crystal places a blank line in details for every child record before the "hit" that does not meet the criteria of my formula. This problem is compounded by the fact that I had to place all of the summary info in the report header and the notes (from the narrative table) in details (so the notes would stay together). I tried to place this formula in details A and the notes in details B and suppress details A when the criteria was not met, but the "hit" shows up on page 6 of a 9 page and there after.
I hope I've made some sense with all this, and further, I hope someone can shead some light on this.
Thanks
James
Network Admin