Gregory has attended:
Access Intermediate course
Access Advanced course
Automatic date formula
Is there a way to enter a formula in a date/time field in a table which automatically enters the current date.
I am trying to have percentage split which gets changed over time. However the current split must always be todays date.
The query is something like this
TradeValue * Split
Where TradeDate > SplitValidFrom && TradeDate <= SplitValidTo
Is there a way for an expression which whenever referenced will give the current date in the SplitValidToField?
If not what is the code to replace null values with todays date in the query.
If any screenshots are required please email to my delegate email address
Many thanks,
Greg
RE: Automatic date formula
Hi Gregory,
Thank you for your question.
Is the SplitValidToField set up as a Date and Time field in the table?
If so, go to Design View of the table and select the field. Go to the Default Value property for the field and type =Date(). This date function will alwaus default the current date in the field.
I hope this answers your question.
Regards
Simon