Mar 7, 2007 #1 Cordeiro82 MIS Joined Aug 24, 2005 Messages 56 Location US Hello All, How would you make the visibility of txtboxA dependant on a value in txtboxB, so that txtboxA is only visible when txtboxB displays the value "Yes". thanks, kevin
Hello All, How would you make the visibility of txtboxA dependant on a value in txtboxB, so that txtboxA is only visible when txtboxB displays the value "Yes". thanks, kevin
Mar 7, 2007 #2 jebry Programmer Joined Aug 6, 2001 Messages 3,006 Location US Hi! Use Conditional Formatting from the Format menu. hth Jeff Bridgham Purdue University Graduate School Data Analyst Upvote 0 Downvote
Hi! Use Conditional Formatting from the Format menu. hth Jeff Bridgham Purdue University Graduate School Data Analyst
Mar 7, 2007 1 #3 missinglinq Programmer Joined Feb 9, 2002 Messages 1,914 Location US Set Visible to False in the Properties Box for txtBoxA, then: Code: Private Sub txtBoxB_BeforeUpdate(Cancel As Integer) If txtBoxB = "yes" Then txtBoxA.Visible = True End Sub Code: Private Sub Form_Current() If txtBoxB = "yes" Then txtBoxA.Visible = True Else txtBoxA.Visible = False End If End Sub The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat! Upvote 0 Downvote
Set Visible to False in the Properties Box for txtBoxA, then: Code: Private Sub txtBoxB_BeforeUpdate(Cancel As Integer) If txtBoxB = "yes" Then txtBoxA.Visible = True End Sub Code: Private Sub Form_Current() If txtBoxB = "yes" Then txtBoxA.Visible = True Else txtBoxA.Visible = False End If End Sub The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat!
Mar 7, 2007 #4 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Private Sub txtBoxB_BeforeUpdate(Cancel As Integer) txtBoxA.Visible = (txtBoxB = "Yes") End Sub Private Sub Form_Current() txtBoxA.Visible = (txtBoxB = "Yes") End Sub Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Private Sub txtBoxB_BeforeUpdate(Cancel As Integer) txtBoxA.Visible = (txtBoxB = "Yes") End Sub Private Sub Form_Current() txtBoxA.Visible = (txtBoxB = "Yes") End Sub Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886