Trying to get a value from a summing query

  • Thread starter Thread starter Jim McDonald
  • Start date Start date
J

Jim McDonald

Hi all
Any ideas on this one? I want to find the max size of a field in a table, so
say:
SELECT Max(tablename.field) AS MaxNo FROM tablename
and then I want to get the value of MaxNo.
I can do it doing a max-lop etc, but I'd like just to get the field MaxNo,
with the number in it!!
Thanks for any ideas
Jim McDonald
 
Hi Jim,

How about try using DMax()? Lookup Dmax for help.

Hope this will help.
 
Jim said:
Any ideas on this one? I want to find the max size of a field in a table, so
say:
SELECT Max(tablename.field) AS MaxNo FROM tablename
and then I want to get the value of MaxNo.
I can do it doing a max-lop etc, but I'd like just to get the field MaxNo,
with the number in it!!


Well, you could open a recordset on that query, but why not
just use the DMax function?

DMax("field", "tablename")
 
Thanks 10^6. Would you believe I just never saw it. Thanks again Jim
 
Thanks 10^6. Would you believe I just never saw it. Thanks again Jim
 

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