Select Top 1000000 tblAssets.AssetID,
tblADusers.Lastname,
tblADusers.Firstname,
tblAssets.AssetUnique,
tblAssets.Domain,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
Case tblSoftware.softwareVersion
When '20.2.11.3' Then '2-Current-20.2.1'
When '20.0.0.377' Then '0-Original'
When '20.0.1.2' Then '0A-Original'
When '20.1.0.81' Then '1-20.1'
When '20.2.0.48' Then '2-20.2'
Else 'Unknown'
End As [Service Pack],
tblSoftwareUni.SoftwarePublisher As Autodesk,
tsysOS.Image As icon,
tsysOS.OSname,
tblSoftware.softID As softid,
tblAssets.IPAddress,
tblAssets.IPNumeric
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblADusers On tblADusers.Username = tblAssets.Username
Where tblSoftwareUni.softwareName Like 'Autodesk Revit 2020' And
tblAssetCustom.State = 1 And tblSoftwareUni.SoftID = 2521
Order By [Service Pack],
tblAssets.AssetName,
Version
The above is the code. I have been playing around and have not come up with what I have been wanting. I have tried the following
Adding
Case
When '2-Current-20.2.1' then '#d4f4be'
Else '#ffadad'
End As backgroundcolor
I have tried just adding the colors to the case above with still nothing changing color. I was trying to mimic the process from a google vulnerability report but again no avail. Please help me out. My other reports are like the first portion.