V
Vrijesh
Hi All,
I am new with VBA for acces and am trying to capture the
system time on the click of a button. Could someone tell
me how to do it? I've created an click event for the
button which should capture the current system time and
display it in a text for on the form. Everytime I try it I
get an error "Control must have focus to reference its
property or method"
This is the code I use:
Private Sub Command28_Click()
Text24.Text = FormatDateTime(Now, vbLongTime)
End Sub
Thanx in advance..
I am new with VBA for acces and am trying to capture the
system time on the click of a button. Could someone tell
me how to do it? I've created an click event for the
button which should capture the current system time and
display it in a text for on the form. Everytime I try it I
get an error "Control must have focus to reference its
property or method"
This is the code I use:
Private Sub Command28_Click()
Text24.Text = FormatDateTime(Now, vbLongTime)
End Sub
Thanx in advance..