timer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to see an example of coding a timer to change color of a text
box and have it blink if the date has past or is the date in the text box. I
want to see if a service is past due
 
I would like to see an example of coding a timer to change color of a text
box and have it blink if the date has past or is the date in the text box. I
want to see if a service is past due

A timer is not appropriate in this case. The Timer property of a form
counts in milliseconds - not in dates! You *may* be able to use the
Timer to make a textbox blink, but many users find such displays much
more annoying than useful.

Instead, if you have A2000 or later, you can use the Custom Formatting
property of a textbox on the form. Select the textbox, and then choose
Conditional Formatting from the Format menu option. Put a criterion in
the condition box such as <= Date() to select records where the
due-date field has passed, and choose a contrasting color for the
display of the textbox.

John W. Vinson[MVP]
 
Thanks john that worked great!
KPE

John Vinson said:
A timer is not appropriate in this case. The Timer property of a form
counts in milliseconds - not in dates! You *may* be able to use the
Timer to make a textbox blink, but many users find such displays much
more annoying than useful.

Instead, if you have A2000 or later, you can use the Custom Formatting
property of a textbox on the form. Select the textbox, and then choose
Conditional Formatting from the Format menu option. Put a criterion in
the condition box such as <= Date() to select records where the
due-date field has passed, and choose a contrasting color for the
display of the textbox.

John W. Vinson[MVP]
 
Back
Top