I try to get a maximum value from a columm and my coding is like that:
SQL= "SELECT max(service_id) FROM tracking "
set rs = openConn.Execute(SQL)
dim id
id=rs("service_id"
Response.Write(id)
but it still got error! The error is:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
can some one help me to check over it! Thanks for your kindness...
regards, eddy
SQL= "SELECT max(service_id) FROM tracking "
set rs = openConn.Execute(SQL)
dim id
id=rs("service_id"
Response.Write(id)
but it still got error! The error is:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
can some one help me to check over it! Thanks for your kindness...
regards, eddy