Hi I have used the following code in my form to automatically update a date field when a user enters information or changes info on a form.
However I would like the date to be displayed without the time. Is this possible using datepart() or do I have to use something a bit more complicated??
I would also like to disable the user from being able to put the cursor in the textbox where the date is that will update automatically if this is possible.
Thanks!
Vicky
Code:
Sub Form_BeforeUpdate(Cancel As Integer)
Me.Sup_Update = Now()
End Sub
However I would like the date to be displayed without the time. Is this possible using datepart() or do I have to use something a bit more complicated??
I would also like to disable the user from being able to put the cursor in the textbox where the date is that will update automatically if this is possible.
Thanks!
Vicky
