Is it possible for a command button to be disabled...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

during a specific time period? I need several buttons that open other access
reports/databases to be disabled or their "Visible" property set to false.
 
Set the TimerInterval for the form to an interval that works for you (e.g.
hourly = 3600000) then use the OnTimer event to run code something like:

if (vba.time > [start time] and vba.time < [end time]) then
[btnNames].enabled = true
else
[blnNames].enabled = false

hth
-Jayyde
 
Back
Top