Max of value

A

ANSWER

I have one table with 10 fields,
ID is primary key and I want to find max of ID in my search form.
For example: Bill Biks have next education:
1. Primary school
2. Secondary school
3. High school
4. College

Now I want to take just College. The problem is because for
some persons fill order is a bit changed and looks upside down
or just have one, the max education
 
G

Graham R Seach

I'm not 100% sure I understand what you're after here, but to find the last
entry for the table:
SELECT Max(ID) As MaxID, Education FROM tblMyTable

To find the last entry for "College":
SELECT Max(ID) As MaxID, Education FROM tblMyTable
WHERE T1.Education = "College"

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

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

Creating a report from a query using drop down box parameters 1
How to build a "reach around" query? 5
CV 1
Conditional maximum 3
IIF in a report Footer 3
New user need help 5
IIf Statement 2
Max value 2

Top