Question : Access Query - Calculated Field

Hi Experts,

A field in my query is as follows:

ClassName: [tblSubjects]![Subject] & Year(Now()) & "Yr" & [tblGrade]![Grade]

I worried that the " Year(Now()) " part will automatically update next year.

Can you please help me understanding how I can keep that value fixed in my records?

Thanks
Ric

Answer : Access Query - Calculated Field

Now() is a function that grabs the date at the time of execution.  If you are using it in a SQL statement then it will always be today's date string.

If you are putting data into a table using Now() then that data will be written with the date string at the time of you running the query.  The date will not change as it was only retrieved at the time of execution and will display the date string that corresponded to that execution only.
Random Solutions  
 
programming4us programming4us