Looks like column dbo.tblLicenses.softwareVersion has been removed in v4
Select Top 100 Percent dbo.tblLicenses.softwareName,
dbo.tblLicenses.softwareVersion, dbo.web40repUsedSoftware.SoftwarePublisher As
Publisher, dbo.web40repUsedSoftware.[number in use],
dbo.tblLicenses.Nrlicenses, dbo.tblLicenses.Priceperlicense, Case
When (dbo.web40repUsedSoftware.[number in use] > dbo.tblLicenses.Nrlicenses)
Then (dbo.web40repUsedSoftware.[number in use] - dbo.tblLicenses.Nrlicenses)
Else Null End As Missing, Case
When (dbo.web40repUsedSoftware.[number in use] > dbo.tblLicenses.Nrlicenses)
Then (dbo.web40repUsedSoftware.[number in use] - dbo.tblLicenses.Nrlicenses)
* dbo.tblLicenses.Priceperlicense Else Null End As Price
From dbo.web40repUsedSoftware Inner Join
dbo.tblLicenses On dbo.web40repUsedSoftware.softwareName =
dbo.tblLicenses.softwareName And dbo.web40repUsedSoftware.softwareVersion =
dbo.tblLicenses.softwareVersion
Order By Case
When (dbo.web40repUsedSoftware.[number in use] > dbo.tblLicenses.Nrlicenses)
Then (dbo.web40repUsedSoftware.[number in use] - dbo.tblLicenses.Nrlicenses)
* dbo.tblLicenses.Priceperlicense Else Null
End Desc, dbo.tblLicenses.softwareName, dbo.tblLicenses.softwareVersion