ACC: Sample Function to Use the COMMDLG Color Dialog Box (109390)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q109390 SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
The Palette in Microsoft Access provides a limited selection of colors for
database objects and does not allow you to create custom colors. However,
the BackColor, ForeColor, and BorderColor properties of forms and reports
will accept any valid RGB color value.
This article lists a sample Access Basic function called ChooseColor() that
uses the Microsoft Windows standard Color dialog box so that you can choose
from a greater selection of colors or create your own custom color.
NOTE: In Access for Windows 95, the new Color Builder Wizard is included
which replaces the functionality of the ChooseColor function. For more
information about the Color Builder, search for "Color Builder" using the
Microsoft Access for Windows 95 Help Index.
This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools provided
with Microsoft Access. For more information on Access Basic, please refer
to the "Introduction to Programming" manual in Microsoft Access version
1.x, or the "Building Applications" manual, Chapter 3, "Introducing Access
Basic" in version 2.0.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbinfo kbprogramming KB109390 |
---|
|