D
DBD2005
I have a table with daily customer orders from which I want to find th
largest and smallest $ value over a range of dates in order t
determine the $ range (Max - Min) and update the customer table wit
that info.
I used an SQL SELECT (with MAX and MIN, grouped by customer, WHER
daterange), to do it and it works fine. Now I also need to update th
Customer table with the last order value in that date range. I trie
using LAST and tested it using Access Query but I believe that i
provided the last record entered for each customer. How can I mak
sure that it takes the latest date? Sorting by date doesn't seem t
work, probably because I group by customer!?
If this is not possible, what would be the simplest way to find th
order value of a specific customer on a specific date? I could the
run a loop for each customer and find it in the customer file.
believe FIND in RECORDSET cannot handle a complex criteria.
Any help is appreciated, I'm new to VBA
DB
largest and smallest $ value over a range of dates in order t
determine the $ range (Max - Min) and update the customer table wit
that info.
I used an SQL SELECT (with MAX and MIN, grouped by customer, WHER
daterange), to do it and it works fine. Now I also need to update th
Customer table with the last order value in that date range. I trie
using LAST and tested it using Access Query but I believe that i
provided the last record entered for each customer. How can I mak
sure that it takes the latest date? Sorting by date doesn't seem t
work, probably because I group by customer!?
If this is not possible, what would be the simplest way to find th
order value of a specific customer on a specific date? I could the
run a loop for each customer and find it in the customer file.
believe FIND in RECORDSET cannot handle a complex criteria.
Any help is appreciated, I'm new to VBA
DB