Hi
Apologies if this is a stupid question but I am really struggling with the following.
I have the following query
[sql] SELECT spec.HOUSE_TYPE, spec.SHEET, spec.STOCK_CODE, spec.QTY, STOCK.STOCK_DESC, STOCK.Quotation_Ref, STOCK.Merchant_Code, STOCK.Manufacturer_Code, STOCK.COST, STOCK]![COST]*[spec]![QTY] AS Total INTO New_Order_2019
FROM (STOCK RIGHT JOIN spec ON STOCK.STOCK_CODE = spec.STOCK_CODE) LEFT JOIN Merchant_Quotes ON STOCK.Quotation_Ref = Merchant_Quotes.Quotation_Ref
WHERE (((spec.HOUSE_TYPE)=[Forms]![Order_Pad_Builder]![HouseType]) AND ((spec.SHEET)=[Forms]![Order_Pad_Builder]![Txt_WhereStr])); [/sql]
The text box contains a string of choices from a list box control. But the query returns no data. yet if I copy and paste the data from the text box directly into the criteria box of the query builder it produces data??
Any idea what I am doing wrong.
Apologies if this is a stupid question but I am really struggling with the following.
I have the following query
[sql] SELECT spec.HOUSE_TYPE, spec.SHEET, spec.STOCK_CODE, spec.QTY, STOCK.STOCK_DESC, STOCK.Quotation_Ref, STOCK.Merchant_Code, STOCK.Manufacturer_Code, STOCK.COST, STOCK]![COST]*[spec]![QTY] AS Total INTO New_Order_2019
FROM (STOCK RIGHT JOIN spec ON STOCK.STOCK_CODE = spec.STOCK_CODE) LEFT JOIN Merchant_Quotes ON STOCK.Quotation_Ref = Merchant_Quotes.Quotation_Ref
WHERE (((spec.HOUSE_TYPE)=[Forms]![Order_Pad_Builder]![HouseType]) AND ((spec.SHEET)=[Forms]![Order_Pad_Builder]![Txt_WhereStr])); [/sql]
The text box contains a string of choices from a list box control. But the query returns no data. yet if I copy and paste the data from the text box directly into the criteria box of the query builder it produces data??
Any idea what I am doing wrong.