Code:
objrs2.Open "Select * from idtab where antkuber > 0 and antkuberid <= " & request.form("kube"), loginbase, adlockreadonly, adcmdtable
Hope this is what you wanted. But I would suggest you to validate the value of "KUBE" using ASP, so that when you send it across for execution in SQL statement, you will know for sure that the value is > 0 and in that case you don't have to use the "antkuber > 0" condition there.
Hope that helps.
Cheers
_________________________
- Vijay G
Strive for Perfection