rupertandolly
Programmer
Hi,
(winxp - Access 2002 VBA)
I have the follwoing problem:
I have declared the following function:
Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Integer, ByVal wParam As String, lParam As Any) As Long
Const LB_FINDSTRING = &H18F
When the code below fires I get the following error:
Compile Error:
Method or Data member not found.
The VB editor opens and shows .hWnd highlighted below.
Am I missing a reference or something??
Private Sub Text41_Change()
JobHeader.ListIndex = SendMessage(JobHeader.hWnd, LB_FINDSTRING, _
Text41, ByVal Text41.Text)
End Sub
(winxp - Access 2002 VBA)
I have the follwoing problem:
I have declared the following function:
Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Integer, ByVal wParam As String, lParam As Any) As Long
Const LB_FINDSTRING = &H18F
When the code below fires I get the following error:
Compile Error:
Method or Data member not found.
The VB editor opens and shows .hWnd highlighted below.
Am I missing a reference or something??
Private Sub Text41_Change()
JobHeader.ListIndex = SendMessage(JobHeader.hWnd, LB_FINDSTRING, _
Text41, ByVal Text41.Text)
End Sub