R
Richard Horne
I have a form based around various combo boxes and text boxes, the query
takes the results of these fields to display various quotations. But the
results are inconsistent and some results are missed out but I can't
understand why?
Any help would be gratefully received.
SELECT Quotations.QuotationID, Quotations.Date,
Quotations.Quotation_Customer_Lookup, Quotations.[Your Reference],
Quotations.QuotationBy, Quotation_Details.[Item No],
Quotation_Details.Product_lookup, Quotation_Details.[Full Description],
Quotation_Details.[Type/Colour/Size], Quotation_Details.Quantity,
Quotation_Details.[Denomination Lookup], Quotation_Details.Price
FROM Quotations INNER JOIN Quotation_Details ON Quotations.QuotationID =
Quotation_Details.QuotationID
WHERE (((Quotations.Quotation_Customer_Lookup) Like
Nz([cboCompanyName],"*")) AND ((Quotations.[Your Reference]) Like
Nz([QuoteRef],"*")) AND ((Quotations.QuotationBy) Like Nz([cboQuoteBy],"*"))
AND ((Quotation_Details.Product_lookup) Like Nz([cboProduct],"*")) AND
((Quotation_Details.[Full Description]) Like Nz([txtDescription],"*")) AND
((Quotation_Details.[Type/Colour/Size]) Like Nz([txtTypeColourSize],"*")))
ORDER BY Quotations.QuotationID DESC;
takes the results of these fields to display various quotations. But the
results are inconsistent and some results are missed out but I can't
understand why?
Any help would be gratefully received.
SELECT Quotations.QuotationID, Quotations.Date,
Quotations.Quotation_Customer_Lookup, Quotations.[Your Reference],
Quotations.QuotationBy, Quotation_Details.[Item No],
Quotation_Details.Product_lookup, Quotation_Details.[Full Description],
Quotation_Details.[Type/Colour/Size], Quotation_Details.Quantity,
Quotation_Details.[Denomination Lookup], Quotation_Details.Price
FROM Quotations INNER JOIN Quotation_Details ON Quotations.QuotationID =
Quotation_Details.QuotationID
WHERE (((Quotations.Quotation_Customer_Lookup) Like
Nz([cboCompanyName],"*")) AND ((Quotations.[Your Reference]) Like
Nz([QuoteRef],"*")) AND ((Quotations.QuotationBy) Like Nz([cboQuoteBy],"*"))
AND ((Quotation_Details.Product_lookup) Like Nz([cboProduct],"*")) AND
((Quotation_Details.[Full Description]) Like Nz([txtDescription],"*")) AND
((Quotation_Details.[Type/Colour/Size]) Like Nz([txtTypeColourSize],"*")))
ORDER BY Quotations.QuotationID DESC;