Hi all, I'm getting some problem when I try to do a cross reference that need a parameter that is an option group on the form, my sql is like this:
PARAMETERS [Forms]![ordersplitting]![chkweekday] Long;
TRANSFORM First([Vendor-Store-Status].Status) AS PremierDeStatus
SELECT [Vendor-Store-Status].Vendor
FROM [Vendor-Store-Status]
GROUP BY [Vendor-Store-Status].Vendor
PIVOT [Vendor-Store-Status].[Store#];
But each time I open the form, they asked me about the parameter 2 times, I can put anything or nothing and it will work, but is there a way to stop the parameter window to appear each time? The parameter is on another query from which I take the cross reference information. The code is like that:
SELECT Fournisseurs.[Supplier#], IIf(Trim([CompteDeVendorNo] & "")="",0,[CompteDeVendorNo]) AS Qty, [Vendor-Store-Status_Analyse croisée].[1], [Vendor-Store-Status_Analyse croisée].[2], [Vendor-Store-Status_Analyse croisée].[3]
FROM (qryVendorListBox0 RIGHT JOIN (Fournisseurs INNER JOIN WeekDay ON Fournisseurs.WeekDay = WeekDay.WeekDay) ON qryVendorListBox0.VendorNo = Fournisseurs.[Supplier#]) LEFT JOIN [Vendor-Store-Status_Analyse croisée] ON Fournisseurs.[Supplier#] = [Vendor-Store-Status_Analyse croisée].Vendor
GROUP BY Fournisseurs.[Supplier#], IIf(Trim([CompteDeVendorNo] & "")="",0,[CompteDeVendorNo]), [Vendor-Store-Status_Analyse croisée].[1], [Vendor-Store-Status_Analyse croisée].[2], [Vendor-Store-Status_Analyse croisée].[3], WeekDay.Number
HAVING (((WeekDay.Number)=[forms]![ordersplitting]![chkweekday]));
Thanks for your help!
Haerion
PARAMETERS [Forms]![ordersplitting]![chkweekday] Long;
TRANSFORM First([Vendor-Store-Status].Status) AS PremierDeStatus
SELECT [Vendor-Store-Status].Vendor
FROM [Vendor-Store-Status]
GROUP BY [Vendor-Store-Status].Vendor
PIVOT [Vendor-Store-Status].[Store#];
But each time I open the form, they asked me about the parameter 2 times, I can put anything or nothing and it will work, but is there a way to stop the parameter window to appear each time? The parameter is on another query from which I take the cross reference information. The code is like that:
SELECT Fournisseurs.[Supplier#], IIf(Trim([CompteDeVendorNo] & "")="",0,[CompteDeVendorNo]) AS Qty, [Vendor-Store-Status_Analyse croisée].[1], [Vendor-Store-Status_Analyse croisée].[2], [Vendor-Store-Status_Analyse croisée].[3]
FROM (qryVendorListBox0 RIGHT JOIN (Fournisseurs INNER JOIN WeekDay ON Fournisseurs.WeekDay = WeekDay.WeekDay) ON qryVendorListBox0.VendorNo = Fournisseurs.[Supplier#]) LEFT JOIN [Vendor-Store-Status_Analyse croisée] ON Fournisseurs.[Supplier#] = [Vendor-Store-Status_Analyse croisée].Vendor
GROUP BY Fournisseurs.[Supplier#], IIf(Trim([CompteDeVendorNo] & "")="",0,[CompteDeVendorNo]), [Vendor-Store-Status_Analyse croisée].[1], [Vendor-Store-Status_Analyse croisée].[2], [Vendor-Store-Status_Analyse croisée].[3], WeekDay.Number
HAVING (((WeekDay.Number)=[forms]![ordersplitting]![chkweekday]));
Thanks for your help!
Haerion