J
JMF
I asked a question yesterday - you can see it still on the list - about how
to achieve the effect "Same as Previous" when entering data. That is, take
the default to be whatever the previous value was. I received two great
replies that solved the problem for me:
YourField.DefaultValue = " ' " & [YourField] & " ' "
My field was in fact a text field.
Then I got ambitious and tried to do the same thing for another field, which
happens to be a Date field. I wrote this:
Date.DefaultValue = """" & Date.Value & """"
But, whereas it worked perfectly for my other text field, I got a syntax
error for my Date field.
I'm using the "medium" format for my dates, so that e.g. today is 07-May-06.
I figure I still haven't understood how to work with dates and I'm not
"getting" the syntax.
Could somebody enlighten me?
Thanks!
John
to achieve the effect "Same as Previous" when entering data. That is, take
the default to be whatever the previous value was. I received two great
replies that solved the problem for me:
YourField.DefaultValue = " ' " & [YourField] & " ' "
My field was in fact a text field.
Then I got ambitious and tried to do the same thing for another field, which
happens to be a Date field. I wrote this:
Date.DefaultValue = """" & Date.Value & """"
But, whereas it worked perfectly for my other text field, I got a syntax
error for my Date field.
I'm using the "medium" format for my dates, so that e.g. today is 07-May-06.
I figure I still haven't understood how to work with dates and I'm not
"getting" the syntax.
Could somebody enlighten me?
Thanks!
John