Can't find function

D

DS

I have this in a module,

Public Sub HidePointer()
Do While ShowCursor(0) >= -1
DoEvents
Loop
End Sub

On a form on the onclick event I have this...
=HidePointer()
but access says that it can't find the function. What am I doing wrong?

Also how would I attach this code to a keystroke?

Thanks
DS
 
Top