ACC2000: How to Get Red, Green, Blue Components from RGB Value (210420)
The information in this article applies to:
This article was previously published under Q210420 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
This article shows you how to create a sample user-defined function,
GetRGB(), that returns the red, green, or blue component from an RGB color value. Note that this behavior is the opposite of the Visual Basic for Applications function RGB().
REFERENCESFor more information about the RGB function, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type RGB function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB210420 |
---|
|