jmbcreative
Technical User
I have a form that has a combo box in it with values that I manually inputed. One of those values is "add hardware". I need the HardwareAdd form to open up when the "add hardware " value is selected. How can I do that?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Combo63_Change()
If Combo63.Value = "Add Hardware" Then
DoCmd.OpenForm "HardwareAdd"
EndIf
End Sub
Public Const IDC_HAND = 32649&
Public Const IDC_ARROW = 32512&
Public Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
Public Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long
Public Sub MouseToHand()
Dim hCur As Long
hCur = LoadCursor(0, IDC_HAND)
If (hCur > 0) Then
SetCursor hCur
End If
End Sub
Call MouseToHand