Hi,
Could somebody please help me, Im having a bit of trouble making a automatic date appear in a table field.
What I want is as follows:
I have a date field called "Last Test Date" which I input a date manually, I also a text field called "Frequency Of Test" which I input either Daily, Monthly or Yearly manually.
I then have a text field called "Next Test Date" which I want the date to be automaticly entered based on the above.
I have tried a if statement below, date function in access etc but still can not get it to work.
Below is what I have tried.
If [Frequency Of Test] = 'Yearly' then
[Next Test Date] = [Last Test Date] + dateadd (y,1,date()))
ElseIf
If [Frequency Of Test] = 'Monthly' then
[Next Test Date] = [Last Test Date] + dateadd (m,1,date()))
Elseif
If [Frequency Of Test] = 'Daily' then
[Next Test Date] = [Last Test Date] + dateadd (d,1,date()))
EndIF
If anyone could help me further on this I would much appericate it.
Thanks
Lee
Could somebody please help me, Im having a bit of trouble making a automatic date appear in a table field.
What I want is as follows:
I have a date field called "Last Test Date" which I input a date manually, I also a text field called "Frequency Of Test" which I input either Daily, Monthly or Yearly manually.
I then have a text field called "Next Test Date" which I want the date to be automaticly entered based on the above.
I have tried a if statement below, date function in access etc but still can not get it to work.
Below is what I have tried.
If [Frequency Of Test] = 'Yearly' then
[Next Test Date] = [Last Test Date] + dateadd (y,1,date()))
ElseIf
If [Frequency Of Test] = 'Monthly' then
[Next Test Date] = [Last Test Date] + dateadd (m,1,date()))
Elseif
If [Frequency Of Test] = 'Daily' then
[Next Test Date] = [Last Test Date] + dateadd (d,1,date()))
EndIF
If anyone could help me further on this I would much appericate it.
Thanks
Lee