I have two images and would like one displayed depending on whether the textbox 'customer_name' is empty and the other image if the text box has data in, what's the vb code for this????
In the OnCurrent Event for the Form itself, place:
If IsNull(Me![name of textbox]) Then
Me![name of picture to display when empty].Visible = True
Me![name of picture not to display].Visible = False
Else
Me![name of picture to display when empty].Visible = False
Me![name of picture not to display].Visible = True
End If
Then set both images to Visible = No on the form. You should be set.
****************************
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. (Albert Einstein)
Robert L. Johnson III
MCSA, CNA, MCP, Network+, A+
w: robert.l.johnson.iii@citigroup.com
h: wildmage@tampabay.rr.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.