L
Lucien
Below is what my SQL looks like for a query I'm working on. When I open the
query a parameter box pops up asking the user to input a District Number
which is the way I want it. But after that parameter is entered another
parameter value box pops up asking for Invoice Bucket. I do not want this
second parameter to be an option, but I can't figure out why it pops
up....can anyone please explain why this is happening and help me with my
problem?
thanks in advance !!
SELECT [New Item Tracking Table thru July II].Plant AS PLANT, [New Item
Tracking Table thru July II].Item AS ITEM, [MATERIAL ATT CPIR EXPANDED
CURRENT].BOD_CODE, [New Item Tracking Table thru July II].Invoices AS
INVOICES, [New Item Tracking Table thru July II].Units AS UNITS, [Planned
Delivery Times_Branch Types].[Brn Type], IIf([Planned Delivery Times_Branch
Types]!PDT<7,[Planned Delivery Times_Branch Types]![Lead Time],[Planned
Delivery Times_Branch Types]!PDT*(5/7)+1) AS [Lead Time], IsRange([INVOICES])
AS [Invoice Bucket], [Brn Type] & [BOD_CODE] & [Lead Time] & [Invoice Bucket]
AS Together
FROM [Slpk_Wk Days], ([New Item Tracking Table thru July II] INNER JOIN
[MATERIAL ATT CPIR EXPANDED CURRENT] ON [New Item Tracking Table thru July
II].Item = [MATERIAL ATT CPIR EXPANDED CURRENT].MATERIAL) INNER JOIN [Planned
Delivery Times_Branch Types] ON [New Item Tracking Table thru July II].Plant
= [Planned Delivery Times_Branch Types].Plnt
GROUP BY [New Item Tracking Table thru July II].Plant, [New Item Tracking
Table thru July II].Item, [MATERIAL ATT CPIR EXPANDED CURRENT].BOD_CODE, [New
Item Tracking Table thru July II].Invoices, [New Item Tracking Table thru
July II].Units, [Planned Delivery Times_Branch Types].[Brn Type],
IIf([Planned Delivery Times_Branch Types]!PDT<7,[Planned Delivery
Times_Branch Types]![Lead Time],[Planned Delivery Times_Branch
Types]!PDT*(5/7)+1), IsRange([INVOICES]), [Brn Type] & [BOD_CODE] & [Lead
Time] & [Invoice Bucket], [New Item Tracking Table thru July II].District
HAVING ((([New Item Tracking Table thru July II].Invoices)>1) AND (([New
Item Tracking Table thru July II].Units)>1) AND (([New Item Tracking Table
thru July II].District)=[Enter District Code]))
ORDER BY [New Item Tracking Table thru July II].Plant, [New Item Tracking
Table thru July II].Item;
query a parameter box pops up asking the user to input a District Number
which is the way I want it. But after that parameter is entered another
parameter value box pops up asking for Invoice Bucket. I do not want this
second parameter to be an option, but I can't figure out why it pops
up....can anyone please explain why this is happening and help me with my
problem?
thanks in advance !!
SELECT [New Item Tracking Table thru July II].Plant AS PLANT, [New Item
Tracking Table thru July II].Item AS ITEM, [MATERIAL ATT CPIR EXPANDED
CURRENT].BOD_CODE, [New Item Tracking Table thru July II].Invoices AS
INVOICES, [New Item Tracking Table thru July II].Units AS UNITS, [Planned
Delivery Times_Branch Types].[Brn Type], IIf([Planned Delivery Times_Branch
Types]!PDT<7,[Planned Delivery Times_Branch Types]![Lead Time],[Planned
Delivery Times_Branch Types]!PDT*(5/7)+1) AS [Lead Time], IsRange([INVOICES])
AS [Invoice Bucket], [Brn Type] & [BOD_CODE] & [Lead Time] & [Invoice Bucket]
AS Together
FROM [Slpk_Wk Days], ([New Item Tracking Table thru July II] INNER JOIN
[MATERIAL ATT CPIR EXPANDED CURRENT] ON [New Item Tracking Table thru July
II].Item = [MATERIAL ATT CPIR EXPANDED CURRENT].MATERIAL) INNER JOIN [Planned
Delivery Times_Branch Types] ON [New Item Tracking Table thru July II].Plant
= [Planned Delivery Times_Branch Types].Plnt
GROUP BY [New Item Tracking Table thru July II].Plant, [New Item Tracking
Table thru July II].Item, [MATERIAL ATT CPIR EXPANDED CURRENT].BOD_CODE, [New
Item Tracking Table thru July II].Invoices, [New Item Tracking Table thru
July II].Units, [Planned Delivery Times_Branch Types].[Brn Type],
IIf([Planned Delivery Times_Branch Types]!PDT<7,[Planned Delivery
Times_Branch Types]![Lead Time],[Planned Delivery Times_Branch
Types]!PDT*(5/7)+1), IsRange([INVOICES]), [Brn Type] & [BOD_CODE] & [Lead
Time] & [Invoice Bucket], [New Item Tracking Table thru July II].District
HAVING ((([New Item Tracking Table thru July II].Invoices)>1) AND (([New
Item Tracking Table thru July II].Units)>1) AND (([New Item Tracking Table
thru July II].District)=[Enter District Code]))
ORDER BY [New Item Tracking Table thru July II].Plant, [New Item Tracking
Table thru July II].Item;