Good morning fellas,
I payed more attention to the tables when I was building the queries, if
they were connected or not in the query design view. When the query worked,
they were connected. When the query didn't work, they weren't connected.
Anyway, here's the code from the query which returns about 6,000 records,
the one which doesn't work, and which in design view, the tables are not
connected:
SELECT DISTINCT tbl_ServerIPs.serverName, tbl_ServerIPs.ip,
tbl_CommandList.commandName
FROM tbl_ServerIPs, tbl_CommandList;
You can see I put "SELECT DISTINCT" in there. This still didn't solve the
problem.
Here's the code from a near identical query, with the addition of another
table in the query. This additional table is the bridge between the tables
used in the same query above , but in "Design View," the tables are now
connected together to this center table, [tbl_ServerPhysicalLocation].
SELECT tbl_ServerIPs.serverName, tbl_ServerIPs.ip,
tbl_ServerPhysicalLocation.row, tbl_ServerPhysicalLocation.rack,
tbl_CommandList.commandName
FROM tbl_CommandList INNER JOIN (tbl_ServerIPs INNER JOIN
tbl_ServerPhysicalLocation ON tbl_ServerIPs.serverName =
tbl_ServerPhysicalLocation.serverName) ON tbl_CommandList.commandName =
tbl_ServerPhysicalLocation.commandName;
I don't know if this means anything or not, but I see that there are some
INNER JOINs here not present in the first query.
I'm looking forward to hearing you guys tear this code apart.
Thanks so much.
-Blenvid