Sam Summers
Registered User.
- Local time
- Today, 07:39
- Joined
- Sep 17, 2001
- Messages
- 939
I quite simply have this query and others similar to this (below).
But there may be records that do not have a 'CertNo' but I just want to show all the records of this type with or without a 'CertNo' therefore some fields on the form may be blank.
Here is the SQL:-
SELECT Equipment.EquipmentID, Location.JobNo, Equipment.LocationID, EquipLookup.EquipDescription, EquipLookup.ENNumber, Equipment.EquipRef, Equipment.ItemNo, Equipment.TestDate, ConformancyCerts.CertNo
FROM Location INNER JOIN (EquipLookup INNER JOIN (ConformancyCerts INNER JOIN Equipment ON (ConformancyCerts.CertID = Equipment.CertID) AND (ConformancyCerts.CertID = Equipment.CertID)) ON (EquipLookup.EquipRef = Equipment.EquipRef) AND (EquipLookup.EquipRef = Equipment.EquipRef)) ON (Location.LocationID = Equipment.LocationID) AND (Location.LocationID = Equipment.LocationID)
WHERE (((EquipLookup.EquipDescription)=[Forms]![FindAccess]![Item].[Text]))
ORDER BY EquipLookup.EquipDescription, Equipment.ItemNo;
I have tried various combinations like 'Is Null' in the 'CertNo' column etc but just can't seem to get my head round it.
If anyone can help
THANK YOU !!!!!!!
But there may be records that do not have a 'CertNo' but I just want to show all the records of this type with or without a 'CertNo' therefore some fields on the form may be blank.
Here is the SQL:-
SELECT Equipment.EquipmentID, Location.JobNo, Equipment.LocationID, EquipLookup.EquipDescription, EquipLookup.ENNumber, Equipment.EquipRef, Equipment.ItemNo, Equipment.TestDate, ConformancyCerts.CertNo
FROM Location INNER JOIN (EquipLookup INNER JOIN (ConformancyCerts INNER JOIN Equipment ON (ConformancyCerts.CertID = Equipment.CertID) AND (ConformancyCerts.CertID = Equipment.CertID)) ON (EquipLookup.EquipRef = Equipment.EquipRef) AND (EquipLookup.EquipRef = Equipment.EquipRef)) ON (Location.LocationID = Equipment.LocationID) AND (Location.LocationID = Equipment.LocationID)
WHERE (((EquipLookup.EquipDescription)=[Forms]![FindAccess]![Item].[Text]))
ORDER BY EquipLookup.EquipDescription, Equipment.ItemNo;
I have tried various combinations like 'Is Null' in the 'CertNo' column etc but just can't seem to get my head round it.
If anyone can help
THANK YOU !!!!!!!