A
Adam
I thought I had this query finished, but apparently it's not working as I had
hoped...
I have two tables and one form. "Contacts" and "Calls" are the tables and "A
or M" is the form. I want to display all the records from "Contacts",
including all the associated calls from "Calls" where "ProductTypeV" (a field
in "A or m") is equal to iits dropdown value.
As the query stands below, the results are not narrowing to just the
"ProductTypeV" restriction and the field "call notes" doesn't display
properly. (Symbols are displaying.) Though, when I change it to a Right
Join the notes field shows up correctly, but the results remain unnarrowed by
the "
ProductTypeV."
Any ideas are more than appreciated.
-Adam
SELECT Contacts.[Wholesaler Name], Contacts.[Designated State],
Contacts.[Designated Area], Contacts.[Product Type], Calls.CallDate,
Calls.CallTime, Calls.Subject, Calls.Notes, Contacts.[Wholesaler ID],
Contacts.ContactID, Calls.CallDate, Contacts.City, Contacts.[Packet Sent to
Wholesaler Date], Contacts.[Payment for Allocation], Contacts.[Allocated Case
Volume], Contacts.[Employee]
FROM Contacts LEFT JOIN Calls ON Contacts.ContactID=Calls.ContactID
WHERE Contacts.[Product Type]=forms![A or M]!ProductTypeV And
Contacts.[Packet Sent to Wholesaler YN]=True And (Contacts.[Agreement
Received YN]=False Or Contacts.[Check Received YN]=False) Or (Contacts.[Open
Issue Resolved YN]=False And Contacts.[Open Issue YN]=True)
GROUP BY Calls.Notes, Contacts.[Wholesaler Name], Contacts.[Designated
State], Contacts.[Designated Area], Contacts.[Product Type], Calls.CallDate,
Calls.CallTime, Calls.Subject, Contacts.[Wholesaler ID], Contacts.ContactID,
Contacts.City, Contacts.[Packet Sent to Wholesaler Date], Contacts.[Payment
for Allocation], Contacts.[Allocated Case Volume], Contacts.[Employee];
hoped...
I have two tables and one form. "Contacts" and "Calls" are the tables and "A
or M" is the form. I want to display all the records from "Contacts",
including all the associated calls from "Calls" where "ProductTypeV" (a field
in "A or m") is equal to iits dropdown value.
As the query stands below, the results are not narrowing to just the
"ProductTypeV" restriction and the field "call notes" doesn't display
properly. (Symbols are displaying.) Though, when I change it to a Right
Join the notes field shows up correctly, but the results remain unnarrowed by
the "
ProductTypeV."
Any ideas are more than appreciated.
-Adam
SELECT Contacts.[Wholesaler Name], Contacts.[Designated State],
Contacts.[Designated Area], Contacts.[Product Type], Calls.CallDate,
Calls.CallTime, Calls.Subject, Calls.Notes, Contacts.[Wholesaler ID],
Contacts.ContactID, Calls.CallDate, Contacts.City, Contacts.[Packet Sent to
Wholesaler Date], Contacts.[Payment for Allocation], Contacts.[Allocated Case
Volume], Contacts.[Employee]
FROM Contacts LEFT JOIN Calls ON Contacts.ContactID=Calls.ContactID
WHERE Contacts.[Product Type]=forms![A or M]!ProductTypeV And
Contacts.[Packet Sent to Wholesaler YN]=True And (Contacts.[Agreement
Received YN]=False Or Contacts.[Check Received YN]=False) Or (Contacts.[Open
Issue Resolved YN]=False And Contacts.[Open Issue YN]=True)
GROUP BY Calls.Notes, Contacts.[Wholesaler Name], Contacts.[Designated
State], Contacts.[Designated Area], Contacts.[Product Type], Calls.CallDate,
Calls.CallTime, Calls.Subject, Contacts.[Wholesaler ID], Contacts.ContactID,
Contacts.City, Contacts.[Packet Sent to Wholesaler Date], Contacts.[Payment
for Allocation], Contacts.[Allocated Case Volume], Contacts.[Employee];