TechRetard
New member
- Local time
- Today, 11:39
- Joined
- Aug 8, 2009
- Messages
- 2
Ok, so I have a form that has a few fields on it, including ID and Timezone ("AZ", "Eastern", etc). I have a text box and search button which is used to quickly bring up all the fields for the ID in the text box.
I want to add a digital clock ("timer") to the form, but i want it to change to the correct time based on the timezone on the form. Say for example I live in AZ, so time Now() will be set, but when i enter a 2 (ID #2) in the text box and click search, it displays results for my #2 which has an Eastern Time zone (+3 hours) I would like the timer to add 3 hours....
I can add a timer to the form using: (having a textbox on the form named "Timer1")
Also, I can add an If statement to the form_timer (if timezone.text = "eastern" then etc...but i have to set focus to the time zone text box first...but then it's always setting focus to that box and I can't type anything in my search box :-(
Does this make sense...any ideas??
I want to add a digital clock ("timer") to the form, but i want it to change to the correct time based on the timezone on the form. Say for example I live in AZ, so time Now() will be set, but when i enter a 2 (ID #2) in the text box and click search, it displays results for my #2 which has an Eastern Time zone (+3 hours) I would like the timer to add 3 hours....
I can add a timer to the form using: (having a textbox on the form named "Timer1")
Code:
Private Sub Form_Load()
Me.TimerInterval = 1000
End Sub
Private Sub Form_Timer()
[Timer1] = Now()
End Sub
Also, I can add an If statement to the form_timer (if timezone.text = "eastern" then etc...but i have to set focus to the time zone text box first...but then it's always setting focus to that box and I can't type anything in my search box :-(
Does this make sense...any ideas??