Can't find function

  • Thread starter Thread starter DS
  • Start date Start date
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
 
Back
Top