using todays date in calculated row (1 Viewer)

kobiashi

Registered User.
Local time
Today, 22:26
Joined
May 11, 2018
Messages
258
Hi


How can i use todays date in the expression builder when creating a calculated row in a table

so i want to be able to deduct todays date from another row.
 

kobiashi

Registered User.
Local time
Today, 22:26
Joined
May 11, 2018
Messages
258
Use the following: =Date()

thanks for the reply

i tried to use that in the formula but it didnt work

heres what i tried

Code:
LastDone - Date()
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 16:26
Joined
Feb 28, 2001
Messages
27,138
You have your answer, but you should note that putting calculations in a table is just NOT a good idea. Do calculations in a query. Also, do you realize that every time you open the table, you recompute the row? If the goal was to compute an elapsed time from one event to another, your computed row is NOT static.
 

isladogs

MVP / VIP
Local time
Today, 22:26
Joined
Jan 14, 2017
Messages
18,209
Agree with the Doc.
Using calculated fields in tables is a bad idea
Do this in a query where it will work
 

Mark_

Longboard on the internet
Local time
Today, 14:26
Joined
Sep 12, 2017
Messages
2,111
thanks for the reply

i tried to use that in the formula but it didnt work

heres what i tried

Code:
LastDone - Date()

This would normally give you a negative value if LastDone is a date PRIOR to today. The calculation would normally be
Code:
Date() - LastDone
to give the number of days since the [LastDone] Date/Time.
 

Users who are viewing this thread

Top Bottom