F fenhow Registered User. Local time Today, 11:17 Joined Jul 21, 2004 Messages 599 Nov 16, 2009 #1 Hi, Looking for a way to hide a label if a textbox shows a value and show the label if the textbox value is a Null. Thanks. Fen How
Hi, Looking for a way to hide a label if a textbox shows a value and show the label if the textbox value is a Null. Thanks. Fen How
S Scooterbug Registered User. Local time Today, 14:17 Joined Mar 27, 2009 Messages 853 Nov 16, 2009 #2 Code: if nz(me.txtbox,"") = "" then me.labelName.visible = false else me.labelName.visible = true The nz will set the value to "" if the control is null. Place the code on the forms On Current Event and the After Update Event.
Code: if nz(me.txtbox,"") = "" then me.labelName.visible = false else me.labelName.visible = true The nz will set the value to "" if the control is null. Place the code on the forms On Current Event and the After Update Event.