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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top