In the design view of a form, drop a button on the form.
Then, right click, go to Properties. on the Events tab,
select the On Click event. This will occur whenever you
click the button.
Now, select the drop down, and select [Event Procedure].
Click the ... on the right.
I guess there are lots of ways, but here is one, but you need to click
on it to up date it. No table needed, just a form, command button, and
text box.
Private Sub Command0_Click()
Dim stTime As Date
stTime = Now()
stTime = Right(stTime, 8)
Text1.SetFocus
Text1.Text = stTime
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.