finding a highest number in a database

How do I search a database field for the highest value and return it to a text box in VBS?
mattewjonesAsked:
Who is Participating?
 
dancebertCommented:
If it's a numeric field, the SQL is

SELECT Max( fieldName ) FROM tableName
0
 
gronCommented:
Or you can also SELECT (fieldname) ORDER BY (fieldname) DESC
and then read the first record
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.