I'm attempting to create a railroad report using the format of the attached sample, and I've run into a few questions:
1. Without getting into VB code, is there a way to generate the dashed lines whenever the Station ID (e.g. "STU", "NEW", "IOW") changes, while maintaining the overall sort order by Seq (far left)? I tried the Sort/grouping feature, but as long as Seq is the primary sort key, it seems to want to make each record its own "group", since Seq changes with each one. If I remove Seq from and sort/group only based on Station ID, then the grouping works, but it sorts the cars alphabetically by station instead of leaving them in Seq order. Any ideas what I'm doing wrong?
2. How can I generate the "*** HAZARDOUS ***" line immediately following any record where "HZ" is set to "Y", such as record #10?
3. The "LE" column has values of "L" (Load), "E" (Empty), and "O" (Operating, i.e. locomotives). How can I keep a count of each, as well as a total of all cars, to report in the footer? Also, each database record will indicate the tonnage of each car, but it won't be printed in detail on this particular report. How can I print a total tonnage of all cars included in the report?
Thanks very much for your help.
1. Without getting into VB code, is there a way to generate the dashed lines whenever the Station ID (e.g. "STU", "NEW", "IOW") changes, while maintaining the overall sort order by Seq (far left)? I tried the Sort/grouping feature, but as long as Seq is the primary sort key, it seems to want to make each record its own "group", since Seq changes with each one. If I remove Seq from and sort/group only based on Station ID, then the grouping works, but it sorts the cars alphabetically by station instead of leaving them in Seq order. Any ideas what I'm doing wrong?
2. How can I generate the "*** HAZARDOUS ***" line immediately following any record where "HZ" is set to "Y", such as record #10?
3. The "LE" column has values of "L" (Load), "E" (Empty), and "O" (Operating, i.e. locomotives). How can I keep a count of each, as well as a total of all cars, to report in the footer? Also, each database record will indicate the tonnage of each car, but it won't be printed in detail on this particular report. How can I print a total tonnage of all cars included in the report?
Thanks very much for your help.