Hey,
This is the SQL for the first query: -
SELECT Order2.[Receipt No], Order2.[Full Name], Date() AS [Date],
Order2.[Employee ID], Customer.Address, Customer.[Phone Number],
Customer.[E-mail Address], Customer.Fax, Order2.Cash, Order2.Cheque,
Order2.EFTPOS, Order2.[Credit Card]
FROM [Products List] INNER JOIN ((Order2 INNER JOIN Customer ON
Order2.[Full
Name] = Customer.[Full Name]) INNER JOIN Order1 ON Order2.[Receipt No] =
Order1.[Receipt No]) ON [Products List].[Product Name] = Order1.[Product
Name];
And, here is the SQL for the second query: -
SELECT Order1.[Receipt No], Customer.[Full Name], Order1.[Product Name],
Order1.Quantity, [products list.sales price]*[order1.quantity] AS SubTotal
FROM [Products List] INNER JOIN ((Customer INNER JOIN Order2 ON
Customer.[Full Name] = Order2.[Full Name]) INNER JOIN Order1 ON
Order2.[Receipt No] = Order1.[Receipt No]) ON [Products List].[Product
Name]
= Order1.[Product Name];
Thank you in advance
Graham R Seach said:
Mat,
Then it's probably the queries. If you post the SQL, we can see if
there's
anything obvious that we can fix.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------
hi graham
i have just had a look, and i deleted all records in the tables that
are
associated with the forms, and entered information back into them, and
it
still did the same thing.
i have found out, though, that when i use the information brought from
Queries into a form and a subform, that's when it does it. But, when i
bring
the information from tables, it doesn't do it, it only counts the
receipts
that i have.
Is there a way i can avoid this, because i already have information
setup
using queries, like working out Subtotals, and totals, or will i have
to
use
the actual tables?
thankyou in advance
:
Mat,
My guess is that you have some extra, empty, data in that table. Open
up
the
table itself and have a look. If there are some blank records in
there,
delete them, but you'll need to find out why your design allows these
records.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------
hello, i have a form with a subform that the form asks for a persons
name,
and the subform asks for a product and quantity, and works out the
price
from
there.
the only problem is, that the record navigation bar shows that there
are
30
records, when there are only 13 receipts.
can someone help me with this please?