When viewing an IP Locations Overview report (our printers all have a common third octet), it sorts "logically".
xx.xxx.123.1
xx.xxx.123.2
...
xx.xxx.123.9
xx.xxx.123.10
When creating a custom report to report on other items about the printers (since the IP LO report is generic in nature), it sorts like this.
xx.xxx.123.1
xx.xxx.123.10
xx.xxx.123.2
xx.xxx.123.3
...
The current code I'm using is below, is there a modification that will allow for the sorting in the first example?
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssetCustom.Location,
tblAssetCustom.Building,
tblAssetCustom.Department
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblAssets.IPAddress Like '%.123.%' And tblAssetCustom.State = 1
Order By tblAssets.IPAddress
Also, which table is the Mask (SubnetMask) field located?