AshikHusein
Registered User.
- Local time
- Today, 12:50
- Joined
- Feb 7, 2003
- Messages
- 147
I always get bogged down with the date functions in Access.
I have a table with a field called Remark2_Date (a Date/Time field) which is bound to a field on the form. Now when there is a change to this field the entry should be updated to null if the date is 1/1/2001.
For the change event for the box on the form Remar2_Date using the "Expression Builder" I have added the following:
=IIf(Format([Remark2_Date],"dd/mm/yyyy")=1/1/2001,Null,[Remark2_Date])
But the above does not work. Would appreciate help with the above. Thanks.
I have a table with a field called Remark2_Date (a Date/Time field) which is bound to a field on the form. Now when there is a change to this field the entry should be updated to null if the date is 1/1/2001.
For the change event for the box on the form Remar2_Date using the "Expression Builder" I have added the following:
=IIf(Format([Remark2_Date],"dd/mm/yyyy")=1/1/2001,Null,[Remark2_Date])
But the above does not work. Would appreciate help with the above. Thanks.