If Statement Maybe

robbydogg

Registered User.
Local time
Today, 15:37
Joined
Jul 15, 2008
Messages
56
Hello,

I think this is the right area to submit this question.

What i am looking to do is have a form load up - showing the date and some other detail.

I need a button to be visable if the date is past the 23rd of the month, but hidden if not.

Is there a bit of VB i can use to make this happen? I unders tand how to make an object transparent or not when mouseover etc, but not how to check another piece of data for the action.

Can anyone help?

Thanks muchly.

Rob
:D
 
In the form's load event try:

Code:
If Day(Date()) > 23 Then
  Me.ButtonName.Visible = True
Else
  Me.ButtonName.Visible = False
End If
 
WOW! how quick was that reply - many thanks!!!!!!!!!
 

Users who are viewing this thread

Back
Top Bottom