Dear All,
I'm new to Access and programming, will appreciate your help.
I was given a set of data table with Age e.g 23, 30,42 and it needs to be updated yearly.
I found a code(shown below) , but is there a way to modify it so that the output value of "YearDiff" can be used in table or exported as field?
****
Sub AgeUpdate()
Dim TheDate As Date ' Declare variables.
Dim Msg
DateCreated = "2017/05/17"
Msg = "YearDiff: " & DateDiff("yyyy", DateCreated, Now)
MsgBox Msg
End Sub
****
Many thanks and I hope to hear from anyone soon <3