ColorPicker

Lampje

Member
Local time
Tomorrow, 00:44
Joined
Jul 20, 2021
Messages
37

Attachments

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

Back
Top Bottom