Show/hide Different Picture On Basis Database Field Value Follow
I have a database field with the sex of a person. I'd like to check for each label if the person is male or female. If he's male the "Man sysmbol" should be printed and if the person is female the "women symbol" should appear.
I tried the following VB script, but get an error "Objects: Type mismatch"
Set Pic1 =Objects("Image 1")
Set Pic2 =Objects("Image 2")
If (Field("GESCHLECHT") = m) Then
Pic1.PrintVisibility = True
ElseIf (Field("GESCHLECHT") = w) Then
Pic2.PrintVisibility = True
Please sign in to leave a comment.