T
Tony Williams
Here is my sql
SELECT Clients.ClientID, Clients.CompanyName, [FirstName] & " " & [LastName]
AS Manager, Projects.ProjectID, Projects.ProjectName, [Time Card
Hours].BillableDays, [Time Card Hours].BillingRate, [Time Card Hours].VAT,
[Time Card Hours].DateWorked, Invoices.InvNbr, Invoices.InvDate,
Invoices.BeginDate, Invoices.EndDate
FROM ((Employees RIGHT JOIN Projects ON Employees.EmployeeID =
Projects.EmployeeID) INNER JOIN (Clients INNER JOIN Invoices ON
Clients.ClientID = Invoices.ClientNbr) ON (Clients.ClientID =
Projects.ClientID) AND (Projects.ProjectID = Invoices.ProjectNbr)) INNER
JOIN [Time Card Hours] ON Projects.ProjectID = [Time Card Hours].ProjectID;
This should be giving me the days worked relating to the appropriate Invoice
Nbr. However it is giving me ALL the days worked for the Project ID against
each invoice.
Can anyone help me here? Watch extra information do you need?
TIA
Tony
SELECT Clients.ClientID, Clients.CompanyName, [FirstName] & " " & [LastName]
AS Manager, Projects.ProjectID, Projects.ProjectName, [Time Card
Hours].BillableDays, [Time Card Hours].BillingRate, [Time Card Hours].VAT,
[Time Card Hours].DateWorked, Invoices.InvNbr, Invoices.InvDate,
Invoices.BeginDate, Invoices.EndDate
FROM ((Employees RIGHT JOIN Projects ON Employees.EmployeeID =
Projects.EmployeeID) INNER JOIN (Clients INNER JOIN Invoices ON
Clients.ClientID = Invoices.ClientNbr) ON (Clients.ClientID =
Projects.ClientID) AND (Projects.ProjectID = Invoices.ProjectNbr)) INNER
JOIN [Time Card Hours] ON Projects.ProjectID = [Time Card Hours].ProjectID;
This should be giving me the days worked relating to the appropriate Invoice
Nbr. However it is giving me ALL the days worked for the Project ID against
each invoice.
Can anyone help me here? Watch extra information do you need?
TIA
Tony