I was messing around with the asset out of warranty report and screwed something up. Now I keep getting the error "error while getting report Data conversion failed. [ OLE DB status value (if known) = 2 ]"
Here is my code
Select Top 1000000 tblAssetCustom.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.Warrantydate As [Warranty Expiration],
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Username,
tblOperatingsystem.Caption,
tblADusers.Department,
tsysIPLocations.IPLocation,
tblAssets.IPAddress
From tblAssetCustom
Inner Join tblAssets On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
And tsysAssetTypes.AssetTypeIcon48 = tblAssets.Assettype And
tsysAssetTypes.AssetTypeIcon10 = tblAssetCustom.FTPheader
Inner Join tblADusers On tblAssets.Username = tblADusers.Username And
tsysAssetTypes.AssetTypeIcon48 = tblADusers.IpPhone
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric
And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Where tblAssetCustom.Warrantydate < GetDate()
Order By [Warranty Expiration] Desc