T
Tim Castro
Access 2000 (Yes, I know. Old.)
I am designing a database to help me manage a research study. Subjects will
be baselined, that date will be entered into Access, and the program will
generate a Follow-Up Interview date for 180 days after Baseline. Our
interviewers will go into the database and use an action query to prompt them
of upcoming Follow-Up interviews.
The Baseline Dates are in a Table and formatted as Short Dates. A Query
takes those dates and generates the Follow-Up Interview Date:
Follow-Up: DateAdd("d",180,[Baseline])
Then an action query takes "Follow-Up" and runs "Between [Begin Date] And
[End Date]" as a Criteria. However, I'm getting incorrect output from the
query. Specifically, if I run the action query for dates between 1/1/2008
and 2/1/2008, the output will contain 1/15/2008 (which is correct), but will
also contain 1/20/2005 (where the year is totally out of range). The month
and day are fine, but Access is totally disregarding the year.
Any ideas on how to fix this? This has been frustrating me for several days.
I am designing a database to help me manage a research study. Subjects will
be baselined, that date will be entered into Access, and the program will
generate a Follow-Up Interview date for 180 days after Baseline. Our
interviewers will go into the database and use an action query to prompt them
of upcoming Follow-Up interviews.
The Baseline Dates are in a Table and formatted as Short Dates. A Query
takes those dates and generates the Follow-Up Interview Date:
Follow-Up: DateAdd("d",180,[Baseline])
Then an action query takes "Follow-Up" and runs "Between [Begin Date] And
[End Date]" as a Criteria. However, I'm getting incorrect output from the
query. Specifically, if I run the action query for dates between 1/1/2008
and 2/1/2008, the output will contain 1/15/2008 (which is correct), but will
also contain 1/20/2005 (where the year is totally out of range). The month
and day are fine, but Access is totally disregarding the year.
Any ideas on how to fix this? This has been frustrating me for several days.