Okay here i am again. I am trying to display through a label on a form the time from the computers clock. I beleive the function is "now" and this is the code i have for it.
Option Explicit
---------------------------------------------------------------------------------------------------
sub clock()
label1.caption = Format (Now, "h:mm:ss Am/PM"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
End sub
---------------------------------------------------------------------------------------------------
Now as you can see this dosen't work because i am not loading the Sub clock()
If i put the "clock" in the form_load() sub it will run the instant i load the form and that is all. What am I missing, i can't seem to find the answer i am looking for in any of my books...?????
really appreciate the help, thanks again.........![Cool :cool: :cool:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Option Explicit
---------------------------------------------------------------------------------------------------
sub clock()
label1.caption = Format (Now, "h:mm:ss Am/PM"
End sub
---------------------------------------------------------------------------------------------------
Now as you can see this dosen't work because i am not loading the Sub clock()
If i put the "clock" in the form_load() sub it will run the instant i load the form and that is all. What am I missing, i can't seem to find the answer i am looking for in any of my books...?????
really appreciate the help, thanks again.........