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

Chapter 14. Let's Get More Intimate with... > Practical Applications of Report Eve...

Practical Applications of Report Events and Properties

When developing reports, you should make sure the report can be used in as many situations as possible—that you build as much flexibility into the report as you can. 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 CHAP14.MDB has the following code 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