I have a table with a field named 'RFQ' which is a double field with numbers that are 10-digits long. The problem I'm running into is in one instance I have found that one of my queries is not working altogether correctly.
There are two different records in my tblMaterialDetails where the RFQ field is equal to 1354001001, but when I run a query that uses that field as the criteria it simply will not pull back that record and instead skips it altogether.
While trying to figure this out, I took out the criteria in the query and ran the query and it still didn't pull all the records out of the table? What gives?
The only last thing I am wondering is if a calculated field that is set to use a specific field. If a record didn't have any value for that particular field would it make the query leave out that record???
SELECT tblMaterialDetails.MaterialDetailID, [tblMaterials.Material] & " - " & [tblAlloys.Designation] AS Material, tblMaterialDetails.Specification, tblSuppliers.Supplier, [LeadTime] & " day" & IIf([LeadTime],"s",""
AS Lead, IIf(IsEmpty([Length]) Or IsNull([Length]),Format(([Weight]*[PriceLb])+[Shipping],"Currency"
,Format(([Length]*[PriceFt])+[Shipping],"Currency"
) AS Cost, tblMaterialDetails.RFQ
FROM tblSuppliers INNER JOIN ((tblMaterialDetails INNER JOIN tblAlloys ON tblMaterialDetails.Material = tblAlloys.AlloyID) INNER JOIN tblMaterials ON tblAlloys.Material = tblMaterials.MaterialID) ON tblSuppliers.SupplierID = tblMaterialDetails.Supplier
WHERE (((tblMaterialDetails.RFQ)=[Forms]![frmSWATQuote]![txtDay] & [Forms]![frmSWATQuote]![txtPack] & [Forms]![frmSWATQuote]![txtPart]));
There are two different records in my tblMaterialDetails where the RFQ field is equal to 1354001001, but when I run a query that uses that field as the criteria it simply will not pull back that record and instead skips it altogether.
While trying to figure this out, I took out the criteria in the query and ran the query and it still didn't pull all the records out of the table? What gives?
The only last thing I am wondering is if a calculated field that is set to use a specific field. If a record didn't have any value for that particular field would it make the query leave out that record???
SELECT tblMaterialDetails.MaterialDetailID, [tblMaterials.Material] & " - " & [tblAlloys.Designation] AS Material, tblMaterialDetails.Specification, tblSuppliers.Supplier, [LeadTime] & " day" & IIf([LeadTime],"s",""
FROM tblSuppliers INNER JOIN ((tblMaterialDetails INNER JOIN tblAlloys ON tblMaterialDetails.Material = tblAlloys.AlloyID) INNER JOIN tblMaterials ON tblAlloys.Material = tblMaterials.MaterialID) ON tblSuppliers.SupplierID = tblMaterialDetails.Supplier
WHERE (((tblMaterialDetails.RFQ)=[Forms]![frmSWATQuote]![txtDay] & [Forms]![frmSWATQuote]![txtPack] & [Forms]![frmSWATQuote]![txtPart]));