Function Call from properties window

M

Mark

This may be a duplicate post. If so I apologize.

Here's what I'm doing:


Function CheckNumber(dblNumber as Double) as Boolean
CheckNumber=True
If dblNumber > 999 or dblNumber < -999 then
msgbox("Error")
Cancel=true
CheckNumber=False
End If
End Function


My function call within the properties window:
Before Update -
=CheckNumber([controlName])


I need the control name to be the control that I'm on. I could put
this function call in all my controls and change the control name
everytime, but isnt't there a way to pass the value of the control that

triggered the event? Something like =CheckNumber(Me.Control)


- Mark
 

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