Pull information from database and update
Hello all,
First off, how do you read these forums with a newsreader? I can't seem to find the server address. I haven't been here for a long time. Thanks for the information.
Second.
I have a web page that is linked to a SQL server database.
I created a recordset to pull the number out of a field in a table in that database. I now want to create some coding that says look at this field, display it and then add a number to it. The field is always a number.
I have as follows (only in part):
set rsCasenumber = Server.CreateObject("ADODB.Recordset")
rsCasenumber.ActiveConnection = MM_ClientsWPrime_STRING
rsCasenumber.Source = "SELECT * FROM subcounters"
rsCasenumber.CursorType = 0
rsCasenumber.CursorLocation = 2
rsCasenumber.LockType = 3
rsCasenumber.Open()
rsCasenumber_numRows = 0
If Request("MM_insert")<> "" Then
rsClients.AddNew
rsClients("Casenum")=rsCasenumber("countervalue")
rsClients.Update
rsClients.Requery
now how do I say update rsCasenumber("countervalue") = the number plus one?
Thanks.
