Epsilon101
Programmer
Hi,
Sorry for the example names but i cant use the existing table or field names, here is my sql statement.
I am just trying to search for a customer who has all three of those fields with nothing in, the query returns the correct info when there is no criteria entered, but when i enter the criteria as it is now, it returns no records, well it displays the new record with the <autonumber> in customerID, but does it always do that? i cant remember
The information that goes into the three fields in TblUWDetails comes from combo box selections on a form, that are limited to list in case that effects it in anyway.
Any help would be great.
---------------------------------------
Neil
Sorry for the example names but i cant use the existing table or field names, here is my sql statement.
Code:
SELECT TblLeadInfo.FieldOne, TblLeadInfo.FieldTwo, TblLeadInfo.FieldThree, TblLeadInfo.FieldFour, TblLeadInfo.FieldFive, TblLeadInfo.CustomerID, TblUWDetails.UWFieldOne, TblUWDetails.UWFieldTwo, TblUWDetails.UWFieldThree
FROM TblLeadInfo INNER JOIN TblUWDetails ON TblLeadInfo.CustomerID = TblUWDetails.CustomerID
WHERE (((TblUWDetails.UWFieldOne)="IsNull") AND ((TblUWDetails.UWFieldTwo)="IsNull") AND ((TblUWDetails.UWFieldThree)="IsNull"));
I am just trying to search for a customer who has all three of those fields with nothing in, the query returns the correct info when there is no criteria entered, but when i enter the criteria as it is now, it returns no records, well it displays the new record with the <autonumber> in customerID, but does it always do that? i cant remember
The information that goes into the three fields in TblUWDetails comes from combo box selections on a form, that are limited to list in case that effects it in anyway.
Any help would be great.
---------------------------------------
Neil