If I set the Default Field in the Table to -Date() each new field comes up nicely with a date (no time etc) which is what I want.
If however I want it to be based on an event eg Clicking a tick box VBA doesn't like Date() and I have to use Now().
eg
On CLick
me.field = Now()
Is there any way of using date or can I fill in some parameters in Now(dmyyyy) or something that will make the field only a date field with no time information.
I know I can set the control's format but I want to be able to filter these fields by date easily.
Thanks
If however I want it to be based on an event eg Clicking a tick box VBA doesn't like Date() and I have to use Now().
eg
On CLick
me.field = Now()
Is there any way of using date or can I fill in some parameters in Now(dmyyyy) or something that will make the field only a date field with no time information.
I know I can set the control's format but I want to be able to filter these fields by date easily.
Thanks