View Single Post
  #3  
Old February 18th, 2010, 02:16 PM posted to microsoft.public.access.forms
Jesse via AccessMonster.com
external usenet poster
 
Posts: 29
Default Hide Command button based on a loop timer

Im going to try this, Thank you. I will let you know how it works for what im
looking for but it looks good to me.

PieterLinden 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