Microsoft Access
  Home arrow Microsoft Access arrow Page 3 - Getting to Know Microsoft Access, Part 8: ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Getting to Know Microsoft Access, Part 8: Learning about Reports
By: Sage Adams
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2005-02-09

    Table of Contents:
  • Getting to Know Microsoft Access, Part 8: Learning about Reports
  • Report Wizard
  • Customizing Your Report
  • More Ways to Customize Your Reports

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Getting to Know Microsoft Access, Part 8: Learning about Reports - Customizing Your Report


    (Page 3 of 4 )

     

    You can change your report to look almost any way you’d like. The best way to get started customizing a form is to use the Create report in Design view shortcut.

     

    You can add a header or footer to your report by choosing the View | Page Header/Footer menu option. You can add images to your report, calculated fields, OLE objects, hyperlinks, and background pictures, just as you would do in a form design.

     

    You can base a report on a Parameter Query. This allows you to specify the criteria for the report when you run it, just as you would if you ran the query directly. Create a Parameter Query by first creating the Parameter Query, as described in a previous lesson, and then creating the report. Create the report by selecting the query in the Database window and choosing the Insert | Report menu option. Access will immediately prompt you for the parameters. Enter the parameters and preview the report. You can print the specified parameters in the report header by clicking the Text Box control tool and placing a text box control in the report header; then deleting the attached label; and finally, opening the property sheet of the new control and entering an appropriate expression that matches the Parameter Query’s criteria expression.

     

    You can sort and group your report records. Then you can summarize the sorted or grouped information to illustrate trends and make conclusions. You can change the underlying sort order, grouping records by text, number, currency, autonumber, or date/time field types. Each data type allows you to group the records differently. To change the Sort Order property, keep the Order By On property set to "Yes" and change the Order By property in the following ways to suit your needs: type the field name in brackets followed by the abbreviation ASC to sort the records by one field in ascending order; type the field name in brackets followed by DESC to sort the records in descending order.

     

    You can group records as well. For example, you might base a report on a query that only uses records from tables that have values in a shared field. You can then group those records in your report by specific values in that shared field. For example, if grouped by a "year" field you might have certain records in 2002, others in 2003, and others in 2004. When you want to create the grouped report you just choose the View | Sorting and Grouping menu option and select a field to group those records by in the dialog box. Then, select the order in which you want to arrange the groups. Select the group properties in the lower pane, and finally select whether or not to add a group header or footer to the sections. After you add a header or footer you can show the field you’re grouping by in the header by just cutting and pasting a label to the group header. Then, to add a text box control that shows the value for the group, just use the Text Box control tool and enter the appropriate expression in the property sheet for that control. When you’ve done that, select the label and replace the text in the label to fit your needs.

     

    More Microsoft Access Articles
    More By Sage Adams


     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT