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 VISIBILITY

Status
Not open for further replies.

UberZoot

Technical User
May 31, 2003
29
0
0
US
Ladies and Gents,
I have a subform built form a query that calculates a person's score (a text box named SCORE) and this is linked to a mainform by SSN/Test Date. There is a button on this subform that opens another form to record details about the score. In this subform, if the value in SCORE is > 0, I would like to have the button invisible. If it is <= 0, the button should "appear". Can anyone help me with this?

Thanks in advance.

UZ
 
In the "On Current" event of the form:

Code:
If Me.SCORE.Value > 0 then
     Me.myButton.Visible = True
Else
     Me.myButton.Visible = False
End If

Try that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top