A
AccessDabbler
Working on a query. Which would list all the agents first name, last name,
agent tax id, agent city, agent state, zip ,date agent returned order,
active,background check. I have used the distinct function in the design view
of the query but it doesnt function properly. Here is the SQL view of the
query without the distinct. Its giving repetitive values. Would ideally like
just one record of the agent showing up, but isnt happening right now.
SELECT tb_Agent.Agent_LName, tb_Agent.Agent_FName,
tb_Order.Agent_Returned_Order, tb_Agent.Agent_ID, tb_Agent.Agent_City,
tb_Agent.Agent_St, tb_Agent.Agent_Zip, tb_Agent.Agent_Tax_ID,
tb_Agent.Background_Check, tb_Agent.Active
FROM (tb_Agent INNER JOIN tb_Order ON tb_Agent.Agent_ID = tb_Order.Agent_ID)
INNER JOIN tb_Order_Data ON tb_Order.Order_ID = tb_Order_Data.Order_ID
WHERE (((tb_Order.Agent_Returned_Order)>#10/1/2005#) AND
((tb_Agent.Background_Check)=No) AND ((tb_Agent.Active)=Yes));
agent tax id, agent city, agent state, zip ,date agent returned order,
active,background check. I have used the distinct function in the design view
of the query but it doesnt function properly. Here is the SQL view of the
query without the distinct. Its giving repetitive values. Would ideally like
just one record of the agent showing up, but isnt happening right now.
SELECT tb_Agent.Agent_LName, tb_Agent.Agent_FName,
tb_Order.Agent_Returned_Order, tb_Agent.Agent_ID, tb_Agent.Agent_City,
tb_Agent.Agent_St, tb_Agent.Agent_Zip, tb_Agent.Agent_Tax_ID,
tb_Agent.Background_Check, tb_Agent.Active
FROM (tb_Agent INNER JOIN tb_Order ON tb_Agent.Agent_ID = tb_Order.Agent_ID)
INNER JOIN tb_Order_Data ON tb_Order.Order_ID = tb_Order_Data.Order_ID
WHERE (((tb_Order.Agent_Returned_Order)>#10/1/2005#) AND
((tb_Agent.Background_Check)=No) AND ((tb_Agent.Active)=Yes));