Take a look at what you're requesting when you process the list of software:
Left Join (Select
tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tblSoftware.softwareVersion
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftwareUni.softwareName Like 'Autocad 2011%'
And tblSoftwareUni.softwareName Like '%Autodesk Material LIbraries 2011%'
And tblSoftwareUni.softwareName Like '%Autodesk Revit 2013%') As SoftwareCheck ...
Remember, the query is scanning the software entries one by one.
As an analogy, consider that you've been given a big bag of gumballs and you've been asked to pull out the white, red and green ones, but none of the others. You pull the gumballs out one by one and, in the logic you've listed above, ask yourself:
- is this gumball white?
- AND is this gumball also red?
- AND is this gumball also green?
If you answer yes to
all three questions, then the gumball is selected. You then select the next gumball and repeat the process until the entire bag of gumballs has been processed.
AND means that
all conditions must be true: the gumball must be simultaneously white, red, and green in order to be selected.
OR means that
any one (or more) of the conditions must be true: the gumball must be ANY ONE OF white, red, or green.
Try changing the software evaluations from AND to OR.
Left Join (Select
tblSoftware.AssetID,
tblSoftwareUni.softwareName,
tblSoftwareUni.SoftwarePublisher,
tblSoftware.softwareVersion
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftwareUni.softwareName Like 'Autocad 2011%'
OR tblSoftwareUni.softwareName Like '%Autodesk Material LIbraries 2011%'
OR tblSoftwareUni.softwareName Like '%Autodesk Revit 2013%') As SoftwareCheck ...