I have written a query sql = "SELECT Max(No) FROM Temp" in recordset using
rs.open sql,cn,,,adcmdT ext. How to fetch the result of a recordet. I get wrong answer when i execute following code:
Answer i get is 0 but it should come 4.
Plz tell me correct code
rs.open sql,cn,,,adcmdT ext. How to fetch the result of a recordet. I get wrong answer when i execute following code:
Code:
Dim i as Long sql = ""SELECT Max(No) FROM Temp"" rs.open sql, cn,,,adcmdText i = rs(0) MsgBox(i)
Plz tell me correct code
Comment