Visible at certain time

P

PHisaw

Is it possible to make a control, say a command button, visible after a
certain time of day (5:00 pm)? Something like only visible on certain days
of the week.

Any help is appreicated.
Pam
 
C

Carl Rapson

PHisaw said:
Is it possible to make a control, say a command button, visible after a
certain time of day (5:00 pm)? Something like only visible on certain
days
of the week.

Any help is appreicated.
Pam

In the form's Open event, you could check the time of day and set the
control's Visible property appropriately.

Carl Rapson
 
K

Klatuu

That will work, but if it is necessary for the control to change when the
time rolls around and the form is already open, In that case, the form will
need to use the Timer event to check to see whether to change to control.
 
C

Carl Rapson

You're right, of course. A combination of Form_Open and Form_Timer would be
needed.

Carl Rapson
 
Top