I
IKMD66
Hi,
Appreciate all the help I get here.
I cannot figure out how to do this hence the post.
I retrieve a file date and time from a filein C:\Temp using the code below:
If Dir("C:\Temp\MARA_ZVRP.xls") <> "" Then
maradte = FileDateTime("C:\Temp\MARA_ZVRP.xls")
I then want to set a form field with the value retrieved If I use
Forms![Initialised Form]!MARA_File.DefaultValue = maradte
it doesn't work, however if i use
Forms![Initialised Form]!MARA_File.DefaultValue = """TEST"""
I get "TEST" returned to the form field.
the value for maradte (if debugged) is 23/09/2008 09:19:32
Can anyone point me in the right direction?
Thanks in advance.
Regards,
Kirk
Appreciate all the help I get here.
I cannot figure out how to do this hence the post.
I retrieve a file date and time from a filein C:\Temp using the code below:
If Dir("C:\Temp\MARA_ZVRP.xls") <> "" Then
maradte = FileDateTime("C:\Temp\MARA_ZVRP.xls")
I then want to set a form field with the value retrieved If I use
Forms![Initialised Form]!MARA_File.DefaultValue = maradte
it doesn't work, however if i use
Forms![Initialised Form]!MARA_File.DefaultValue = """TEST"""
I get "TEST" returned to the form field.
the value for maradte (if debugged) is 23/09/2008 09:19:32
Can anyone point me in the right direction?
Thanks in advance.
Regards,
Kirk