D
Doug MacDonald
I have a table named tblPerfArtsCamps as follows:
PerfArtsCampsID AutoNumber
CampDate Date/time
Season Text
*********
I have a query based on tblPerfArtsCamps as follows:
Field: PerfArtsCampsID CampDate Season:
(Conditional statement - see below)
Table: tblPerfArtsCamps tblPerfArtsCamps
********
Conditional Statement:
Season: IIf(DatePart("m",[CampDate])>=10 And DatePart("m",
[CampDate])<=12,CStr(DatePart("yyyy",[CampDate])) & " - "
& CStr(DatePart("yyyy",[CampDate])+1),CStr(DatePart("yyyy",
[CampDate])-1) & " - " & CStr(DatePart("yyyy",[CampDate])))
********
Based on the CampDate I want to calculate the Season which
runs from October to September.
CampDate Season
e.g 9/30/00 -> 1999 - 2000
10/1/99 -> 1999 - 2000
10/1/00 -> 2000 - 2001
etc.
The query generates the season properly but the result
does not get put into table tblPerfArtsCamps.
If I put tblPerfArtsCamps in the Table: cell for Seasons:
I get an error saying there is an extra ")"
How do I get the Season: result to go into the Season
column in the table tblPerfArtsCamps?
I have a .mdb file set up with just the table and the
query. If you would like me to send it to you please
provide an email address.
Thanks
Doug
PerfArtsCampsID AutoNumber
CampDate Date/time
Season Text
*********
I have a query based on tblPerfArtsCamps as follows:
Field: PerfArtsCampsID CampDate Season:
(Conditional statement - see below)
Table: tblPerfArtsCamps tblPerfArtsCamps
********
Conditional Statement:
Season: IIf(DatePart("m",[CampDate])>=10 And DatePart("m",
[CampDate])<=12,CStr(DatePart("yyyy",[CampDate])) & " - "
& CStr(DatePart("yyyy",[CampDate])+1),CStr(DatePart("yyyy",
[CampDate])-1) & " - " & CStr(DatePart("yyyy",[CampDate])))
********
Based on the CampDate I want to calculate the Season which
runs from October to September.
CampDate Season
e.g 9/30/00 -> 1999 - 2000
10/1/99 -> 1999 - 2000
10/1/00 -> 2000 - 2001
etc.
The query generates the season properly but the result
does not get put into table tblPerfArtsCamps.
If I put tblPerfArtsCamps in the Table: cell for Seasons:
I get an error saying there is an extra ")"
How do I get the Season: result to go into the Season
column in the table tblPerfArtsCamps?
I have a .mdb file set up with just the table and the
query. If you would like me to send it to you please
provide an email address.
Thanks
Doug