Har det här för att ta fram högsta värdet i ett fält:
SQLl="Select * From Markpath Order By MarkPathOrder DESC"
Set fir=Conn.Execute(SQLl)
Val = fir("MarkPathOrder")
newVal = Cint(Val) + 1
Men om databasen är tom så får jag upp:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.