Check what you're saying in your WHERE clause.
Where
( tblAssets.AssetID Not In (Select Top 1000000
tblSoftware.AssetID
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftwareUni.softwareName Like '%Netskope%')
And tsysOS.OSname = 'win 10'
)
Or (tsysOS.OSname = 'win 7')
(The computer is running Win10 and is missing the software)
OR (The computer is running Win7, don't care about whether or not the software is present)
Change it to
Where
tblAssets.AssetID Not In (Select Top 1000000
tblSoftware.AssetID
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftwareUni.softwareName Like '%Netskope%')
And (tsysOS.OSname = 'win 10' Or tsysOS.OSname = 'win 7')
(The computer is running either Win10 or Win7) and is missing the software.
Or, if you prefer
And tsysOS.OSname IN ('win 10', 'win 7')