Where am I going wrong?
stSQL = stSQL & " WHERE (Year([ImplementationDate]))= " & CInt(txtSelectDate) And tblChanges.Group = ADEL
This is the bit that's killing me And tblChanges.Group = ADEL Without it the query works a treat except it pulls in all records based on the date range.
What I want is the report to show information based on the date AND the Group ADEL from the table tblChanges
Sorry but my SQL really stinks.
stSQL = stSQL & " WHERE (Year([ImplementationDate]))= " & CInt(txtSelectDate) And tblChanges.Group = ADEL
This is the bit that's killing me And tblChanges.Group = ADEL Without it the query works a treat except it pulls in all records based on the date range.
What I want is the report to show information based on the date AND the Group ADEL from the table tblChanges
Sorry but my SQL really stinks.