Template Query Question

steve21nj

Registered User.
Local time
Today, 13:20
Joined
Sep 11, 2012
Messages
260
Good morning,

I have a question about an Issues template database provided. I’m not sure why I haven’t been able to grasp the idea, but there is a query labeled “Issues Chart Source,” that is referencing two queries and a table.
The two queries are “Contacts_OpenedBy” and “Contacts_AssignedTo” that do not exist in the All Access Objects navigation panel.

My question is, how were the queries created and how is it able to reference them if they are not there?

I’d like to recreate those queries to have a better understanding, but I’m having trouble understanding what they originally did. Or am I just being stupid today.
 

Attachments

  • updatedIssues.accdb
    updatedIssues.accdb
    1.8 MB · Views: 97
  • Capture.PNG
    Capture.PNG
    49.7 KB · Views: 91
The queries have been aliased - if you look at the sql


Code:
SELECT Contacts_AssignedTo.[Contact Name] AS [Assigned To Name], Contacts_OpenedBy.[Contact Name] AS [Opened By Name], Issues.*
FROM [[COLOR=red]Contacts Extended] AS Contacts_OpenedBy[/COLOR] RIGHT JOIN [COLOR=red]([Contacts Extended] AS Contacts_AssignedTo[/COLOR] RIGHT JOIN Issues ON Contacts_AssignedTo.ID = Issues.[Assigned To]) ON Contacts_OpenedBy.ID = Issues.[Opened By]
WHERE (((Issues.Status)<>"Closed"));
 

Users who are viewing this thread

Back
Top Bottom