George
So, instead of having a table of order information, and another table of
line item information, you have it all combined into one? That sounds like
a spreadsheet, not a database.
If you had a more normalized data structure (one table for orders, a "many"
table of related line items), you could simply use Count() on the order
table.
If you build a query that returns the unique order numbers (UniqueValue
property = Yes), then build a second "totals" query on the first one, you
can Count() the number of unique order numbers.
Good luck
Jeff Boyce
<Access MVP>