Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I refresh data in a text box on a form?

Status
Not open for further replies.

Jimenda

IS-IT--Management
Jun 13, 2001
19
0
0
US
I have inserted a date/time box on my form and I would like to refresh it. It current just remains at the D/T when I open the form. So, how can I refresh data in certain portions of my form?

Thank You

Jimenda
 
Use the TimerEvent of the form to refresh it.
Timer interval=100

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
Agreed this is probably the only way,however it can be annoying as all the controls are refreshed and sometimes this can lead to flickering

If IT ain’t working Binnit and Reboot
 
Thanks for the answers.
But, maybe I'm not approaching this correctly, is there a way for me to display realtime on a form?
 
is there a way for me to display realtime on a form
Zameer gave you the answer already:
populate your DateTime box in the Timer event procedure of the form.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
There is a typo in my post Timer Interval =1000
Sorry for that

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top