Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Microsoft Access 2010 : Building Powerful Reports - Control Properties and Why to Use Them (part 2) - The Data Properties of a Control

1/23/2015 8:32:08 PM

The Data Properties of a Control

The Data properties of a control (see Figure 8), described in the following list, specify information about the data underlying a particular report control. Using the Data properties, you can designate everything from what data displays in a control, to whether the data sums as it displays:

  • Control Source The Control Source property specifies the field in the report’s record source that’s used to populate the control. An example is FirstName. A control source can also be a valid expression.

  • Running Sum The Running Sum property (which is unique to reports) is powerful. You can use it to calculate a record-by-record or group-by-group total. You can set it to No, Over Group, or Over All. When set to No, no running sum is calculated. When it is set to Over Group, the value of the text box accumulates from record to record within the group but is reset each time the group value changes. An example is a report that shows deposit amounts for each state, with a running sum for the amount deposited within the state. Each time the state changes, the amount deposited is set to zero. When this property is set to Over All, the sum continues to accumulate over the entire report.

Figure 8. The data properties specify information about the data underlying a report control.


The Other Properties of a Control

The Other properties of a control include properties, such as the following, that don’t fit into any other category (see Figure 9):

A common mistake many Access developers and users make is to give controls names that conflict with Access names. This type of error is difficult to track down. You need to make sure you use distinctive names for both fields and controls. Furthermore, you should not give a control the same name as a field within its expression. For example, the expression =ContactName & ContactTitle shouldn’t have the name ”ContactName”; that would cause an #error# message when you run the report. Finally, you shouldn’t give a control the same name as its control source. Access gives a bound control the same name as its field, and you need to change this name to avoid problems. Following these simple warnings will spare you a lot of grief!


Figure 9. The Other properties of a control.


  • Name The Name property provides an easy and self-documenting way to refer to a control in Visual Basic for Applications (VBA) code and in many other situations. You should name every control so that you can easily identify them in queries, macros, and so on.

  • Vertical The Vertical property is used to determine whether the text within a control is displayed vertically. The default value for this property is No.

  • Tag Like the Tag property of a report, the Tag property of a control provides a user-defined slot for the control. You can place extra information in the Tag property.

Other -----------------
- Microsoft Access 2010 : Building Powerful Reports - The Anatomy of a Report
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Grouping shapes
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Inserting fields: the basics
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Using shape data
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Adding ScreenTips and comments
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Positioning shape text
- Automating Windows 7 Installation : Using Windows System Image Manager (part 3) - Creating an Unattended Answer File
- Automating Windows 7 Installation : Using Windows System Image Manager (part 2) - Exploring the Components of an Answer File
- Automating Windows 7 Installation : Using Windows System Image Manager (part 1) - An Overview of WSIM, Understanding Catalog Files
- Personalizing and Configuring Windows 7 : Performance Tweaks (part 4) - Improving Windows 7's Memory
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
 
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro