Hi guys, need your help. (MS Access- VBA)
I'm trying to create a report that looks something like an attendance report with names columns on the left and days columns on the left.
This is how I want it to be
Names of students on left and names of 12 month (Jan to Dec) columns on the right
and for every student attend the course for each month there should be a (thick) check box or some thing to indicate the presence of the student.
my table consist (tblTrx)
stdDate,stdName, stdClass
i have a form to get the date range
txtBeginDate, txtEndDate
I was told to use this codes in the sql of the Query
SELECT tblTrx.StudentName, Sum(1=Month([TrxDate])) AS Jan, Sum(2=Month([TrxDate])) AS Feb, Sum(3=Month([TrxDate])) AS Mar
FROM tblTrx;
but it returned error saying
You tried to execute a query that does not include the specified expression TrxDate as part of an aggregate function.
I checked the help section and came across the TRANSFORM statement but still feeling lost!
need help guys please.
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).