Jesse wrote:
Hello,
I am trying to have a command button and a box auto hide based on a
designated time set by me. How is the best way to go about this?
Something like this maybe?
(TimerInterval is originally set to 5000 ms).
Private Sub Form_Timer()
Me.lblHere.Visible = Not Me.lblHere.Visible
Me.lblGone.Visible = Not Me.lblGone.Visible
Me.TimerInterval = 0 'shut off the timer
End Sub
so just substitute
Me.cmdWhatever.Visible = Not Me.cmdWhatever.Visible
Me.txtOther.Visible = Not Me.txtOther.Visible
(I guess you could declare a boolean and flip it, using Not... same basic
idea, though...
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201002/1