Maximum of two tables

G

Guest

I have two tables which each have data about the mileages of 10 different
vehicles. I am trying to use a query to find the highest mileage result in
either table for each of the ten vehicles.

Should i be using the MAX function or DMax function?

Any suggestions of what the formula should be?

Thank you
 
J

John Vinson

I have two tables which each have data about the mileages of 10 different
vehicles. I am trying to use a query to find the highest mileage result in
either table for each of the ten vehicles.

Should i be using the MAX function or DMax function?

Any suggestions of what the formula should be?

Thank you

What are these two tables? How do they differ? It sounds like you may
have a flawed design if you have the same basic kind of information
(milage for vehicles) stored separately in two tables...

There's not enough information to give you a good answer. You may need
a UNION query (to essentially string the two tables together into one
larger table), and use a Totals query with the Max function; you may
need to use two DMax() expressions, one on each table, and an IIF()
function to determine which maximum is bigger... it depends on the
context and how you want to use the result.

More info please!

John W. Vinson[MVP]
 

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

Similar Threads

HELP - Finding Max/Min 2
Calculating between tables 2
DLookup Help 4
Maximum Number of Allowable Tables 2
Combining two tables 2
Forms help 2
So many questions... 3
Update Yes/No Field 3

Top