Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Implementing CallBack functionality in Access

Status
Not open for further replies.

SteveJR

Programmer
Aug 13, 2001
72
0
0
GB
Help!!!

Does anyone know how to implement CallBack functionality in Access?

I want to use the VB WindowProc module to monitor OS events but the only way to set up the hook to this module is to have a call as follows:

Public Sub Hook(hWnd As Long)
lngHWnd = hWnd
lpPrevWndProc = SetWindowLong (lngHWnd, GWL_WNDPROC, AddressOf WindowProc)
End Sub

However, the AddressOf call is not allowed in Access/VBA. So what do you use instead??????

Any help would be much appreciated.

Thanks,

Steve
 
Steve,

I'm having the exact same problem... did you ever find a solution? If so, would you mind sharing with a frustrated programmer?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top