1:
SELECT * INTO tblTestTable FROM (TRANSFORM Count(tblResponseAnalysisData.LogOff) AS CountOfLogOff SELECT tblResponseAnalysisData.CompanyCode FROM tblResponseAnalysisData RIGHT JOIN tblLogType ON tblResponseAnalysisData.LogOff = tblLogType.LogNo GROUP BY tblResponseAnalysisData.CompanyCode PIVOT tblLogType.ReportName)