I have a table consisting of the fields: [Name], [1st Visit], [2nd Visit], [3rd Visit], [4th Visit], [5th Visit], [6th Visit]. There are only 6 visits, and the visits are dates the individual visited the clinic. My goal is to list all the individuals that have visited the clinic for the month of January during any of the visits, (1st through 6th Visit). A separate report will be generated for each month.
In my "qryJanuary All Visits", I have placed in the criteria under each of the 6 Visit fields, Like "1/*/*" to obtain January’s dates, which I also want to show the individual’s other visits. So far the results show what I need for each of the 6 visits.
However, in addition, I want to display a number 1 in a new field, if the date is anytime during January for each of the 6 Visit fields. For the [1st Visit] field, I have place the IIF statement: 1stJanY: IIf([1st Visit]="1/*/*","1","0"
. The result displays #Error. The date field in my table is formatted 1/1/2003. Can someone shed some light on what the error reading could be? Thank you….
In my "qryJanuary All Visits", I have placed in the criteria under each of the 6 Visit fields, Like "1/*/*" to obtain January’s dates, which I also want to show the individual’s other visits. So far the results show what I need for each of the 6 visits.
However, in addition, I want to display a number 1 in a new field, if the date is anytime during January for each of the 6 Visit fields. For the [1st Visit] field, I have place the IIF statement: 1stJanY: IIf([1st Visit]="1/*/*","1","0"