Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

automatic date formula

Forum home » Delegate support and help forum » Microsoft Access Training and help » Automatic date formula

Automatic date formula

ResolvedVersion 2003

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

Wed 9 Feb 2011: Automatically marked as resolved.

Access tip:

Display current date & time in column of any width

The worksheet function =NOW() returns the current date & time. When entered into a column which is not wide enough to display the value NOW returns, the cell displays ###

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.