
Time function won't compile
Howdy. I've got a procedure to insert the current time in
a text box on a form when a command button is clicked.
When I compile, I get the error:
Expected variable or function, not project
And the code referenced is the Time function in this line
of code:
Me.endtime = Time
I've also tried writing "Time()", with the same results.
I've searched all the code in this db, as well as object
names, procedures in modules, etc., and there are no
references whatsoever to any object called simply "Time".
Any ideas? In the meantime, I've replaced the Time()
function with this:
Me.endtime = Right(Format(Now(), "dd/mm/yy hh:mm"), 5)
Is there any easier way to write this?
Thank you for your help.
Danny