ColorPicker (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 13:01
Joined
May 7, 2009
Messages
19,230
sorry to kill the thrill, there is already a built-in color picker in ms access?
Code:
#If VBA7 Then

    Declare PtrSafe Sub ChooseColor Lib "msaccess.exe" Alias "#53" _
      (ByVal hWnd As LongPtr, rgb As Long)
#Else

    Declare Sub ChooseColor Lib "msaccess.exe" Alias "#53" _
      (ByVal hwnd As Long, rgb As Long)
#End If

Public Function colorPicker() As Long
    Static lngColor As Long
    ChooseColor Application.hWndAccessApp, lngColor
    colorPicker = lngColor
End Function
 

Users who are viewing this thread

Top Bottom