Date()

northernbreaks

Registered User.
Local time
Today, 08:34
Joined
Sep 5, 2005
Messages
19
Hi
I have setup a textbox and set the expression in the Control Source to =Date()

When I run the form the textbox displays '#Name?'

Anyone any ideas


Dave
 
Maybe it should be in the default value property...?
 
still no joy.

I have tried writing this into the form 1sec timer event to update the textboxes.
txtTime_01.Value = Time ' Update time display.
txtDate_01.Value = Date
The Time works but not the Date, it displays nothing.


Dave
 
Any chance you've named a control or field Date? That would be a no-no.
 
Hi
I think you may be right, I have tried it on other forms and it works, there must be something on this form that is causing the problem.

Thanks


Dave
 
I would also check in any module Toos>References... for broken references.

HTH

Peter
 
Hi Guys
It does compile and I found the problem. The table that the form was linked to had a field with the same name (Tut, Tut, boob on my part), so I changed the field name, and it works fine.

Cheers

Dave
 

Users who are viewing this thread

Back
Top Bottom