combining two queries

  • Thread starter Thread starter tom
  • Start date Start date
T

tom

I have a query that finds the running sum of Inventory
using the dsum function. I have another query that
finds the running sum of Accounts Receivable again
using the same method.

I have a list box on a form showing the data based on
the inventory running sum query. I would like this
list box to have the AR data in it also.

Is this possible?
 
Tom,

I'm assuming that what you mean by a running Inventory and running Accounts
Recievable is that these queries have a date field, and sum some other field
(or combination of fields) for all values before that date, for a particular
product. Is that a valid assessment?

Can you give us the field name in your queries and a couple of sample
records from each. If my assumption above is correct, then the critical
question is "are you certain that you have an entry in each table for each
date in the range you want to display?"

Dale
 
This is the query I am basing the list box on. I want
to combine this with an exactly similar one for
Accounts Receivable.

SELECT InventoryBalance.Date, DatePart("y",[Date]) AS DayOfYear,
DSum("InventoryBalance","InventoryBalance","DatePart('y', [Date])<=" &
[DayOfYear] & "") AS RgBlceInventory
FROM InventoryBalance;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top