G
Guest
I have a list box that when clicked fills a number in a text box (text24)
I then have code that looks at this text box number to determine which case
to use and then shows a command button that corresponds with the case. All
command buttons should not be visible until the corresponding case is
selected.
The last case is when the text box is empty. Then no command buttons should
show on the form. This is all working perfectly except for two buttons.
When the Text box is null, they still show up. They do disappear when
something is selected from the list box that corresponds to a case where they
should not be visible. I've copied and pasted from other cases to be sure I
don't have a typo. But, these last two buttons still show up when text24 is
empty. (cmdLoginAdmin and cmdLoginAaron) Here is the code for the last case:
Case 12 'No Criteria
Me!cmdLoginFull.Visible = False
Me!cmdLoginManagement.Visible = False
Me!cmdLoginOffice1.Visible = False
Me!cmdLoginOffice2.Visible = False
Me!cmdLoginForeman.Visible = False
Me!cmdLoginGeneral.Visible = False
Me!cmdLoginAdmin.Visible = False
Me!cmdLoginMaterialControl.Visible = False
Me!cmdLoginShop.Visible = False
Me!cmdLoginQuality.Visible = False
Me!cmdLoginAaron.Visible = False
I then have code that looks at this text box number to determine which case
to use and then shows a command button that corresponds with the case. All
command buttons should not be visible until the corresponding case is
selected.
The last case is when the text box is empty. Then no command buttons should
show on the form. This is all working perfectly except for two buttons.
When the Text box is null, they still show up. They do disappear when
something is selected from the list box that corresponds to a case where they
should not be visible. I've copied and pasted from other cases to be sure I
don't have a typo. But, these last two buttons still show up when text24 is
empty. (cmdLoginAdmin and cmdLoginAaron) Here is the code for the last case:
Case 12 'No Criteria
Me!cmdLoginFull.Visible = False
Me!cmdLoginManagement.Visible = False
Me!cmdLoginOffice1.Visible = False
Me!cmdLoginOffice2.Visible = False
Me!cmdLoginForeman.Visible = False
Me!cmdLoginGeneral.Visible = False
Me!cmdLoginAdmin.Visible = False
Me!cmdLoginMaterialControl.Visible = False
Me!cmdLoginShop.Visible = False
Me!cmdLoginQuality.Visible = False
Me!cmdLoginAaron.Visible = False