Hi all,
I need some help.
On my form I have an unbound image object.
I want to set the image source and image tooltip text from an external procedure (module in the same DB).
It's basically a validation sub.
The user enters some details, for example an e-mail address.
Then I run the validation procedure.
If the validation is successfull I want to display a green check mark, if it's not successfull, I want to display a red cross icon.
In the form itself it's easy:
But I want to perform these actions in the Validation module.
Something like:
Call ValidateInput(me.imgResult)
And
How do I reference the image properly?
Is it an object? Or control?
Thanks!!
I need some help.
On my form I have an unbound image object.
I want to set the image source and image tooltip text from an external procedure (module in the same DB).
It's basically a validation sub.
The user enters some details, for example an e-mail address.
Then I run the validation procedure.
If the validation is successfull I want to display a green check mark, if it's not successfull, I want to display a red cross icon.
In the form itself it's easy:
Code:
me.imgResult.Picture = "path\check-fail.png"
me.imgResult.ControlTipText = "Validation failed..."
me.imgResult.Visible = True
Something like:
Call ValidateInput(me.imgResult)
And
Code:
Public Function ValidateInput(img as Control)
Validation stuff here
if Validation = False then
img.Picture = "path\check-fail.png"
img.ControlTipText = "Validation failed..."
img.Visible = True
End Function
Is it an object? Or control?
Thanks!!