Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button visible based on checkbox

Status
Not open for further replies.

barra47

Programmer
Dec 25, 2002
86
0
0
AU
On a form I have a button named NCR

and a check box named "View"
On opening the form
if the checkbox "View" is equal to -1 then button "NCR" is visible
if = 0 then not visible

How do I write this code up

what I have so far is not working

Private Sub Form_Open(Cancel As Integer)
If View = -1 Then Me.NCR.Visible = True
End Sub

Thanks in advance
 
Use the Load event procedure instead of the Open:
Me!NCR.Visible = Me!View

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top