May 25 2020 01:31 AM
In my database I a table with a field have a field called "Year" and at the moment this is set to a default for the current year i.e. 2019 and I have to change it each year. Can this field be updated automatically so that next year this field will be amended to 2021 and so on through the years to come.
May 25 2020 04:45 AM
@J0hn60rt0nmentions Instead of hard-coding a value, use the relevant Date function, which is Year(). Since you want to use the following year, not the current year, you'd use Year(Date())+1
May 26 2020 01:01 AM
@George Hepworth Hi George, many thanks for the message. I have tried it it I get a error message say "Expression entered has a function containing the wrong number of arguments" I have tried it in most of the relevant formats Number, Date/Time/and Short text. Any ideas please. What I thought would happen would be, as the database went over in to the next year the year will be auto updated which is what happens in the Date() function.
May 26 2020 06:29 AM
May 26 2020 10:44 PM
Hi George, Many thanks for the help and it works, That's great ....... Super ......
John
May 27 2020 06:28 AM
@J0hn60rt0nmentions Congratulations on solving the problem. Continued success with your project.