P
PQSIK
Guest
Hi everyone,
I don't seem to be able get this code to work, can anyone help.
SQL = "Select Client.Client_Name, Contractor.Contractor_Name, Deliveries.Fuel_Vat + Deliveries.Total_Charge_Tax AS TempTotalVat, Deliveries.* from Client, Contractor, Deliveries where Delivery_Date > "
SQL = SQL & "#" & DateAdd("m", -1, Date) & "# order by Delivery_Date"
SQL = SQL & " where Client.ClientID, Contractor.ContractorID IN (Select ClientID, ContractorID) from Deliveries where Delivery_Date >"
SQL = SQL & " #" & DateAdd("m", -1, Date) & "#"
I am not sure if I can use (IN) with access query.
I have the clientID and contractorID fields in the deliveries table but I want to display the names of them witch is in the client and contractor tables.
Thanks
I don't seem to be able get this code to work, can anyone help.
SQL = "Select Client.Client_Name, Contractor.Contractor_Name, Deliveries.Fuel_Vat + Deliveries.Total_Charge_Tax AS TempTotalVat, Deliveries.* from Client, Contractor, Deliveries where Delivery_Date > "
SQL = SQL & "#" & DateAdd("m", -1, Date) & "# order by Delivery_Date"
SQL = SQL & " where Client.ClientID, Contractor.ContractorID IN (Select ClientID, ContractorID) from Deliveries where Delivery_Date >"
SQL = SQL & " #" & DateAdd("m", -1, Date) & "#"
I am not sure if I can use (IN) with access query.
I have the clientID and contractorID fields in the deliveries table but I want to display the names of them witch is in the client and contractor tables.
Thanks