Code:
Set rs = db.OpenRecordset("qryCheckMainFBI3", DB_OPEN_DYNASET)
run-time error '3061':
too few paramaters. Expect 3.???
qryCheckMainFBI1
Code:
SELECT qryFillTempTables.SiteCode, qryFillTempTables.ID, tblTempYear.YearListID AS CheckYear, qryFillTempTables.SeasonID, qryFillTempTables.MainPointID, qryFillTempTables.Point, qryFillTempTables.FBI, qryFillTempTables.MainFBI, qryFillTempTables.f_SiteID, qryFillTempTables.SiteID, qryFillTempTables.YearID AS CheckTempYear
FROM tblTempYear INNER JOIN qryFillTempTables ON tblTempYear.ID = qryFillTempTables.YearID
WHERE (((qryFillTempTables.SeasonID)=[Forms]![frmSite].[cboSeason]) AND ((qryFillTempTables.SiteID)=[Forms]![frmSite].[txtTest]) AND ((qryFillTempTables.YearID)=[Forms]![frmSite].[cboYear]));
qryCheckMainFBI2
Code:
SELECT tblSiteInfo.SiteCode, tblPointInfo.ID, tblPointInfo.YearID AS CheckYear, tblPointInfo.SeasonID, tblPointInfo.MainPointID, tblPointInfo.Point, tblPointInfo.FBI, tblPointInfo.MainFBI, tblPointInfo.f_SiteID, tblSiteInfo.SiteID, tblTempYear.ID AS CheckTempYear
FROM tblTempYear INNER JOIN (tblPointInfo INNER JOIN tblSiteInfo ON tblPointInfo.f_SiteID = tblSiteInfo.ID) ON tblTempYear.YearListID = tblPointInfo.YearID
WHERE (((tblPointInfo.SeasonID)=[Forms]![frmSite].[cboSeason]) AND ((tblSiteInfo.SiteID)=[Forms]![frmSite].[txtTest]) AND ((tblTempYear.ID)=[Forms]![frmSite].[cboYear]));
qryCheckMainFBI3
Code:
SELECT *
FROM qryCheckMainFBI1
UNION SELECT * FROM qryCheckMainFBI2;
Daniel Dillon
O o . (<--- brain shrinking at rate shown.)