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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top