If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Hide Command button based on a loop timer
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? -- Message posted via http://www.accessmonster.com |
#2
|
|||
|
|||
Hide Command button based on a loop timer
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 |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Hide Command button based on a loop timer
Ok, The code works great but it becomes visible again after the time i
specified. Once visible is false i dont want it to come back. I tried doing this to the code but it didnt work. Private Sub Form_Timer() Me.lblHere.Visible = Not Me.lblHere.Visible = False Me.lblGone.Visible = Not Me.lblGone.Visible = False Me.TimerInterval = 0 'shut off the timer End Sub 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 |
Thread Tools | |
Display Modes | |
|
|