![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Is it possible to bring up the color picker using code in Access 2003 and return the RGB or color value? I'd like the user to be able to choose form background color, etc.... -paulw |
#3
| |||
| |||
|
|
PW wrote: Hi, Is it possible to bring up the color picker using code in Access 2003 and return the RGB or color value? I'd like the user to be able to choose form background color, etc.... -paulw This might help http://www.mvps.org/access/api/api0060.htm |
#4
| |||
| |||
|
|
PW wrote: Hi, Is it possible to bring up the color picker using code in Access 2003 and return the RGB or color value? I'd like the user to be able to choose form background color, etc.... -paulw This might help http://www.mvps.org/access/api/api0060.htm |
#5
| |||
| |||
|
|
PW wrote: Hi, Is it possible to bring up the color picker using code in Access 2003 and return the RGB or color value? I'd like the user to be able to choose form background color, etc.... -paulw This might help http://www.mvps.org/access/api/api0060.htm |
#6
| |||
| |||
|
|
On Wed, 22 Apr 2009 11:30:59 -0700, Salad <oil (AT) vinegar (DOT) com> wrote: PW wrote: Hi, Is it possible to bring up the color picker using code in Access 2003 and return the RGB or color value? I'd like the user to be able to choose form background color, etc.... -paulw This might help http://www.mvps.org/access/api/api0060.htm where do I put this code? I put everything below it in a module: Private Type COLORSTRUC lStructSize As Long hwnd As Long hInstance As Long rgbResult As Long lpCustColors As String Flags As Long lCustData As Long lpfnHook As Long lpTemplateName As String End Type |
#7
| |||
| |||
|
|
PW wrote: On Wed, 22 Apr 2009 11:30:59 -0700, Salad <oil (AT) vinegar (DOT) com> wrote: PW wrote: Hi, Is it possible to bring up the color picker using code in Access 2003 and return the RGB or color value? I'd like the user to be able to choose form background color, etc.... -paulw This might help http://www.mvps.org/access/api/api0060.htm where do I put this code? I put everything below it in a module: Private Type COLORSTRUC lStructSize As Long hwnd As Long hInstance As Long rgbResult As Long lpCustColors As String Flags As Long lCustData As Long lpfnHook As Long lpTemplateName As String End Type I'd put the whole thing, not just the type declaration, from that link into a code module (under Modules) |
|
You might want to download the zip file. |
|
In your form, you'd call the funtion similar to Private Sub CmdChooseBackColor_Click() ' Pass the TextBox Control to the function Me.textCtl.BackColor = DialogColor(Me.textCtl) End Sub |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Nevermind! I converted it to 2003 and I can look at the code. Thanks again. -pw |
#10
| |||
| |||
|
|
PW wrote: Nevermind! I converted it to 2003 and I can look at the code. Thanks again. -pw You're welcome. It seems to work just fine. |
![]() |
| Thread Tools | |
| Display Modes | |
| |