Hi
ACCESS 2003
I don't normally work with access and having a slight problem
Have a table that 5 sections that needs to be report on as one session.
I have manage to use a union statement but need to be able which session is being reported on.
need see session 1, session 2, etc
there is no field for session number but there are subject fields
called [Evaluation Data].S1_Subject as lesson, [Evaluation Data].S2_Subject as lesson, etc I would normally use a case statement but you cannot use case in access sql, any ideas would be most appreciated
find enclosed union statement
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S1_Subject as lesson, [Evaluation Data].S1_Yr_Group as group1, [Evaluation Data].S1_Act_Desc as desc1, [Evaluation Data].S1_Strengths as strenghts, [Evaluation Data].S1_Improvements as improvements, [Evaluation Data].S1_Future_Use as future_use
FROM [Evaluation Data] ;
union
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S2_Subject as lesson, [Evaluation Data].S2_Yr_Group as group1, [Evaluation Data].S2_Act_Desc as desc1, [Evaluation Data].S2_Strengths as strenghts, [Evaluation Data].S2_Improvements as improvements, [Evaluation Data].S2_Future_Use as future_use
FROM [Evaluation Data]
;
union
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S3_Subject as lesson, [Evaluation Data].S3_Yr_Group as group1, [Evaluation Data].S3_Act_Desc as desc1, [Evaluation Data].S3_Strengths as strenghts, [Evaluation Data].S3_Improvements as improvements, [Evaluation Data].S3_Future_Use as future_use
FROM [Evaluation Data];
Union
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S4_Subject as lesson, [Evaluation Data].S4_Yr_Group as group1, [Evaluation Data].S4_Act_Desc as desc1, [Evaluation Data].S4_Strengths as strenghts, [Evaluation Data].S4_Improvements as improvements, [Evaluation Data].S4_Future_Use as future_use
FROM [Evaluation Data] ;
UNION SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S5_Subject as lesson, [Evaluation Data].S5_Yr_Group as group1, [Evaluation Data].S5_Act_Desc as desc1, [Evaluation Data].S5_Strengths as strenghts, [Evaluation Data].S5_Improvements as improvements, [Evaluation Data].S5_Future_Use as future_use
FROM [Evaluation Data] ;
ACCESS 2003
I don't normally work with access and having a slight problem
Have a table that 5 sections that needs to be report on as one session.
I have manage to use a union statement but need to be able which session is being reported on.
need see session 1, session 2, etc
there is no field for session number but there are subject fields
called [Evaluation Data].S1_Subject as lesson, [Evaluation Data].S2_Subject as lesson, etc I would normally use a case statement but you cannot use case in access sql, any ideas would be most appreciated
find enclosed union statement
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S1_Subject as lesson, [Evaluation Data].S1_Yr_Group as group1, [Evaluation Data].S1_Act_Desc as desc1, [Evaluation Data].S1_Strengths as strenghts, [Evaluation Data].S1_Improvements as improvements, [Evaluation Data].S1_Future_Use as future_use
FROM [Evaluation Data] ;
union
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S2_Subject as lesson, [Evaluation Data].S2_Yr_Group as group1, [Evaluation Data].S2_Act_Desc as desc1, [Evaluation Data].S2_Strengths as strenghts, [Evaluation Data].S2_Improvements as improvements, [Evaluation Data].S2_Future_Use as future_use
FROM [Evaluation Data]
;
union
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S3_Subject as lesson, [Evaluation Data].S3_Yr_Group as group1, [Evaluation Data].S3_Act_Desc as desc1, [Evaluation Data].S3_Strengths as strenghts, [Evaluation Data].S3_Improvements as improvements, [Evaluation Data].S3_Future_Use as future_use
FROM [Evaluation Data];
Union
SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S4_Subject as lesson, [Evaluation Data].S4_Yr_Group as group1, [Evaluation Data].S4_Act_Desc as desc1, [Evaluation Data].S4_Strengths as strenghts, [Evaluation Data].S4_Improvements as improvements, [Evaluation Data].S4_Future_Use as future_use
FROM [Evaluation Data] ;
UNION SELECT [Evaluation Data].[Unique ID] as id, [Evaluation Data].Date as date1, [Evaluation Data].Time as time1, [Evaluation Data].[Client Name] as name, [Evaluation Data].Score as score, [Evaluation Data].S5_Subject as lesson, [Evaluation Data].S5_Yr_Group as group1, [Evaluation Data].S5_Act_Desc as desc1, [Evaluation Data].S5_Strengths as strenghts, [Evaluation Data].S5_Improvements as improvements, [Evaluation Data].S5_Future_Use as future_use
FROM [Evaluation Data] ;