• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Advanced Report Techniques > Practical Applications of Report Event...

Practical Applications of Report Events and Properties

When developing reports, you should make sure that you can use the report in as many situations as possible—that you build as much flexibility into the report as you can. Instead of managing several similar reports, making changes to each one whenever something changes, you can manage one report that handles different situations. Using the events and properties covered in this chapter will help you do just that. This might involve changing the report's RecordSource at runtime; using the same report to print summary data, detail data, or both; changing the print position; or even running a report based on a Crosstab query with unbound controls. All these aspects of report design are covered in the following sections.

Changing a Report's RecordSource

There are many times when you might want to change a report's RecordSource at runtime. By doing this, you can allow your users to alter the conditions for your report and transparently modify the query on which the report is based. The rptClientListing report in CHAP10.MDB has the code in Listing 10.15 in its Open event.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint