I need to brush up on my somewhat rusty Access skills. The problem I face is a very elementary one but for the life of me I cannot figure out how to solve it.
A form in my database needs to record the time a user adds a record and update this in the relevant table. I have created a textbox in the form which is bound to the associated field in the table. This textbox is hidden the locked, so the user will not be able to see or use it.
I am trying to display the time in this textbox when a command button is clicked. Since this textbox is bound to the relevant field in the table, that updates when the textbox's value changes. My textbox is "EntryTime", my command button "Save". Here's the code I currently have:
Expand|Select|Wrap|Line Numbers
- Private Sub Save_Click()
- EntryTime.Text = Time
- End Sub
I would greatly appreciate it if someone can shed some light on this.
Thanks.