C
Chase
Below is the SQL of a query where I have set up a text box "txtFldMth" on a
form to pick up the field. The field Name is "Jan-07" and is in text format.
Even though the text box on the form reads "Jan-07" it still asks me to enter
the parameter Pegasus.[Forms]![frmImport]![txtFldMth]. Can you help resolve
this?
INSERT INTO tblTempITACADataStore ( Retail, Period, SubGroup, Guarantee,
InsType, BusiArea, PremType, SalesMode, Chnnl )
SELECT Pegasus.[Forms]![frmImport]![txtFldMth], tblCalendar.Period,
tblTempResolPrd.ProdCode, tblTempResolPrd.GuaranteeCode, "DIR" AS InsType,
"AR011" AS BusiArea, "PER" AS PremType, "OM" AS SMode,
tblTempResolChnnl.SalesChnnl
FROM (Pegasus INNER JOIN tblTempResolChnnl ON Pegasus.Branch_Name =
tblTempResolChnnl.Branch_Name) INNER JOIN tblTempResolPrd ON
Pegasus.Product_Summary = tblTempResolPrd.Product_Summary, tblTempfrmIn INNER
JOIN tblCalendar ON tblTempfrmIn.EndPeriod = tblCalendar.PeriodNo
GROUP BY tblCalendar.Period, tblTempResolPrd.ProdCode,
tblTempResolPrd.GuaranteeCode, "DIR", "AR011", "PER", "OM",
tblTempResolChnnl.SalesChnnl
HAVING (((Sum([Pegasus].[Forms]![frmImport]![txtFldMth]))<>0));
Thanks
Chase
form to pick up the field. The field Name is "Jan-07" and is in text format.
Even though the text box on the form reads "Jan-07" it still asks me to enter
the parameter Pegasus.[Forms]![frmImport]![txtFldMth]. Can you help resolve
this?
INSERT INTO tblTempITACADataStore ( Retail, Period, SubGroup, Guarantee,
InsType, BusiArea, PremType, SalesMode, Chnnl )
SELECT Pegasus.[Forms]![frmImport]![txtFldMth], tblCalendar.Period,
tblTempResolPrd.ProdCode, tblTempResolPrd.GuaranteeCode, "DIR" AS InsType,
"AR011" AS BusiArea, "PER" AS PremType, "OM" AS SMode,
tblTempResolChnnl.SalesChnnl
FROM (Pegasus INNER JOIN tblTempResolChnnl ON Pegasus.Branch_Name =
tblTempResolChnnl.Branch_Name) INNER JOIN tblTempResolPrd ON
Pegasus.Product_Summary = tblTempResolPrd.Product_Summary, tblTempfrmIn INNER
JOIN tblCalendar ON tblTempfrmIn.EndPeriod = tblCalendar.PeriodNo
GROUP BY tblCalendar.Period, tblTempResolPrd.ProdCode,
tblTempResolPrd.GuaranteeCode, "DIR", "AR011", "PER", "OM",
tblTempResolChnnl.SalesChnnl
HAVING (((Sum([Pegasus].[Forms]![frmImport]![txtFldMth]))<>0));
Thanks
Chase