Lansweeper wrote:
TblComputers and tblADUsers must be linked on both the Username and Userdomain fields. Please try the modified report below.
Select Top 1000000 tblerrors.CFGname, tblComputers.Lastseen, tblComputers.FQDN,
tblComputers.Computer, tblComputers.LastknownIP, tblADusers.OU
From tblComputers Inner Join
tblerrors On tblComputers.Computername = tblerrors.Computername Inner Join
tblADusers On tblComputers.Username = tblADusers.Username And
tblADusers.Userdomain = tblComputers.Userdomain
Where tblerrors.CFGname Like 'WMI%' And tblADusers.OU Like '%SPI%'
Hello,
I will try your query and see what it does.
I have modified the one I created this morning, I found out that by using "distinct", it clears my double entries (because all rows have the same exact information). Then I cleaned up a few lines of code.
Here it is :Select
Distinct Top 1000000 tblerrors.CFGname, tblComputers.Lastseen,
tblComputers.FQDN, tblComputers.Computer, tblComputers.LastknownIP,
tblADusers.OU
From tblComputers Inner Join
tblerrors On tblComputers.Computername = tblerrors.Computername Inner Join
tblADusers On tblComputers.Username = tblADusers.Username
Where tblerrors.CFGname Like 'WMI%' And tblADusers.OU Like '%SPI%'