Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using MAX function

Status
Not open for further replies.

kathyf

Programmer
Oct 25, 2000
1
US
We are trying to Select the highest number from our line number field using the MAX function. The syntax we are using is the following:


SELECT MAX(lineno) FROM faq


Here is the error message we keep getting:

ADODB.Fields error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name or ordinal.

/_ScriptLibrary/Recordset.ASP, line 1202

All suggestions welcome.
 
Dear kathyf,

I strongly suggest you take your SQL statement:

> SELECT MAX(lineno) FROM faq

And execute it in your database environment to see what the problem is.

"But, that's just my opinion... I could be wrong".
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top