Currently we are manually entering annual invoices for 300+ food licenses. The invoice is using 3 different tables:
1) Food: with fields FacilityID; Priority; Status
(Priority dictates the risk factor and fee level)
2) Invoice Table: InvoiceID; FacilityID, Billing Date; FeeID
3) Fees: FeeID, FeeAmount; FeeType; Inactive
I will want to invoice all facilities with the Priority of "1"; and a status of "active"
FeeID would be ID #19; FeeType: "License 1"
I have started with an append query:
INSERT INTO Invoice ( FacilityID )
SELECT Food.FacilityID
FROM Food
WHERE (((Food.Priority)="1") AND ((Food.Status)="active"));
how do I incorporate the other tables to include the FeeID or the FeeType?
1) Food: with fields FacilityID; Priority; Status
(Priority dictates the risk factor and fee level)
2) Invoice Table: InvoiceID; FacilityID, Billing Date; FeeID
3) Fees: FeeID, FeeAmount; FeeType; Inactive
I will want to invoice all facilities with the Priority of "1"; and a status of "active"
FeeID would be ID #19; FeeType: "License 1"
I have started with an append query:
INSERT INTO Invoice ( FacilityID )
SELECT Food.FacilityID
FROM Food
WHERE (((Food.Priority)="1") AND ((Food.Status)="active"));
how do I incorporate the other tables to include the FeeID or the FeeType?