INSCNOC
asked on
Access 2007 Form Control
I want to have a form with a text box to be used as a flashing message box, which works fine, my only issue the form keeps going full screen and I only want it as a small box on top of the current open form, I have played with all the form control but no luck, any insight would be appreciated.....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will try to use your advise on a Textbox, how to you "Flash" the control?
Here is example:
http://www.techonthenet.com/access/forms/flashing.php
http://www.techonthenet.com/access/forms/flashing.php
You use the form's Timer event, as suggested in the link by als315. To start a Form event, set the Interval property to something other than zero, then add code to the Form's Timer event. That code will fire every time the timer event is called - which is at each "interval". The Interval value is in milliseconds, so a value of 1,000 is 1 second.
To stop the timer event, set the Form's Interval back to 0.
So for example:
Sub Form_Timer()
If Me.YourControl.BackColor = vbRed Then
Me.YourControl.BackColor = vbBlack
Else
Me.YourControl.Backcolor = vbRed
End If
End Sub
To stop the timer event, set the Form's Interval back to 0.
So for example:
Sub Form_Timer()
If Me.YourControl.BackColor = vbRed Then
Me.YourControl.BackColor = vbBlack
Else
Me.YourControl.Backcolor = vbRed
End If
End Sub
ASKER