M
Megan Flaherty via AccessMonster.com
Hi.
Need some help -
I'm creating an invoice database. I have a form that creates an invoice. It
works fine and it based mainly on the Northwind database.
There are a few differences.
1) I have separate prices for different prices. I'm doing a lookup and I
get the price and then store that price in the invoice details table.
Still working fine.
2) In addition to products that are in the products table, I am allowing
for special items in a separate table. It's almost a duplicate to the
regular items.
My problem today is that when I am trying to do the invoice summary I am
only getting details if I have rows in both tables. Most invoices only have
the first table.
I don't know the best approach.
Here is the current query.
SELECT qryInvoice.InvoiceID, qryInvoice.InvoiceDate, qryInvoice.CustomerID,
qryInvoice.Customer, qryInvoice.INVOICES.Freight, qryInvoice.Tax,
qryInvoice.Palletcharge, qryInvoice.[Resale No], qryInvoice.[Fuel Surcharge]
, qryInvoice.FOB, SHIPPER.Shipvia, [Order Subtotals].totProd, [Special
Order Subtotals].totSpec
FROM [Special Order Subtotals], [Order Subtotals], qryInvoice INNER JOIN
SHIPPER ON qryInvoice.ShipperID = SHIPPER.ShipperID
WHERE ((([qryInvoice]![ShipperID])=[SHIPPER]![ShipperID]) AND (([Order
Subtotals]![InvoiceID])=[qryInvoice]![InvoiceID]) AND (([Special Order
Subtotals]![InvoiceID])=[qryInvoice]![InvoiceID]))
ORDER BY qryInvoice.InvoiceID, qryInvoice.InvoiceDate;
I am not storing totals. Is that a problem? the qryInvoice is the invoice
of customer and invoice tables that is the data source behind the invoice
form.
The regular order totals are in the Order Subtotals and the other are in
the special order totals.
I don't know if this is enough information? Can anyone help?
thanks!!!
Need some help -
I'm creating an invoice database. I have a form that creates an invoice. It
works fine and it based mainly on the Northwind database.
There are a few differences.
1) I have separate prices for different prices. I'm doing a lookup and I
get the price and then store that price in the invoice details table.
Still working fine.
2) In addition to products that are in the products table, I am allowing
for special items in a separate table. It's almost a duplicate to the
regular items.
My problem today is that when I am trying to do the invoice summary I am
only getting details if I have rows in both tables. Most invoices only have
the first table.
I don't know the best approach.
Here is the current query.
SELECT qryInvoice.InvoiceID, qryInvoice.InvoiceDate, qryInvoice.CustomerID,
qryInvoice.Customer, qryInvoice.INVOICES.Freight, qryInvoice.Tax,
qryInvoice.Palletcharge, qryInvoice.[Resale No], qryInvoice.[Fuel Surcharge]
, qryInvoice.FOB, SHIPPER.Shipvia, [Order Subtotals].totProd, [Special
Order Subtotals].totSpec
FROM [Special Order Subtotals], [Order Subtotals], qryInvoice INNER JOIN
SHIPPER ON qryInvoice.ShipperID = SHIPPER.ShipperID
WHERE ((([qryInvoice]![ShipperID])=[SHIPPER]![ShipperID]) AND (([Order
Subtotals]![InvoiceID])=[qryInvoice]![InvoiceID]) AND (([Special Order
Subtotals]![InvoiceID])=[qryInvoice]![InvoiceID]))
ORDER BY qryInvoice.InvoiceID, qryInvoice.InvoiceDate;
I am not storing totals. Is that a problem? the qryInvoice is the invoice
of customer and invoice tables that is the data source behind the invoice
form.
The regular order totals are in the Order Subtotals and the other are in
the special order totals.
I don't know if this is enough information? Can anyone help?
thanks!!!