I am trying to pre-determine a sort order for an insert statement I am using. I create a recordset with a statement such as this:
set rs1=conn.execute("select max(sort) maxsort from tblTest where category = ' & request.form("txtCategory"
& "'"
I think have a variable that I am trying to increment by one to find the new sort order. Something like varsort = rs1("maxsort"
+ 1. The problem is that if there is no match on my select statement I am not able to set the varsort = 1 because the addition won't work when the recordset is empty.
set rs1=conn.execute("select max(sort) maxsort from tblTest where category = ' & request.form("txtCategory"
I think have a variable that I am trying to increment by one to find the new sort order. Something like varsort = rs1("maxsort"