Hi,
This question probably may be asked already but couldn't find it elsewhere!!!!
This table QM contains an ID field, which is an AutoNumber field.
After performing the above insert, I am trying to fetch the MAX(ID) like
It never gives me a value.. The
is always blank.. What could be the reason ?
Thank you very much.
RR
This question probably may be asked already but couldn't find it elsewhere!!!!
This table QM contains an ID field, which is an AutoNumber field.
Code:
rs.Open "QM",objConn,2,3
rs.AddNew
rs("A1") = Request.Form("cafewait")
rs("A2")= Request.Form("overall")
rs("A3A") = Request.Form("s3a")
rs("A3B") = Request.Form("s3b")
rs("A3C") = Request.Form("s3c")
rs("A3D") = Request.Form("s3d")
rs("A3E") = Request.Form("s3e")
rs("A3F") = Request.Form("s3f")
rs("A3G") = Request.Form("s3g")
rs("A3H") = Request.Form("s3h")
rs("A3I") = Request.Form("s3i")
rs("A3J") = Request.Form("s3j")
rs("A3K") = Request.Form("s3k")
rs("A3L") = Request.Form("s3l")
rs("A4A") = Request.Form("s4a")
rs("A4B") = Request.Form("s4b")
rs("A6") = Request.Form("s6")
rs.Update
rs.Close
After performing the above insert, I am trying to fetch the MAX(ID) like
Code:
SQL = "SELECT Max(Q5.QMID) AS MaxOfQMID FROM Q5"
rs.Open SQL, objConn
Response.Write "Max of QMID=" & rs("MaxOfQMID") & "<HR>"
It never gives me a value.. The
Code:
rs("MaxOfQMID")
Thank you very much.
RR