Ask a Question related to Dreamweaver AppDev, Design and Development.
-
The Ox #1
Problems when updating record
I am having a problem with the following code with mySQL. I normally write
with Access and do not get this problem, is there something that I am doing
wrong?
The error is as follows -
ADODB.Recordset.1 error '80004005'
Recordset is read-only
I am trying to update one field using the following code -
<%
Dim rsOutOrders
Dim rsOutOrders_numRows
Set rsOutOrders = Server.CreateObject("ADODB.Recordset")
rsOutOrders.ActiveConnection = MM_cStringname_STRING
rsOutOrders.Source = "SELECT * FROM orderdetails WHERE complete = '" +
Replace(rsOutOrders__MMColParam, "'", "''") + "' ORDER BY dateordered ASC"
rsOutOrders.CursorType = 0
rsOutOrders.CursorLocation = 2
rsOutOrders.LockType = 2
rsOutOrders.Open()
rsOutOrders_numRows = 0
%>
<%
rsOutOrders("complete") = "Yes"
rsOutOrders.Update
%>
Any help would be welcomed!
Thanks in advance...
The Ox Guest
-
Updating record remotely from a script?
I have a MySQL database on my ISP's Linux server. Can anyone tell me if it would be possible to update a specific record remotely without any user... -
Updating a NEW record
ASP/Access Say a user creates a new record and needs to complete multiple forms, on multiple pages.... How do you submit the data to each page... -
Question about Updating a record
Ok, here's what we can assume: <cfset update = "ALIAS = 'Gruu'"> <cfset id = '999'> Here's the simplified query: <cfquery name="angryquery"... -
Updating MySQL record
Hi! I'm heaving a small problem updating a record containing an encrypted password. I'm using aes_encrypt. This is my suggestion for the query... -
Updating a single record on a form
Hi Dennis, You need to look at the properties that begin with 'Allow....'. For example Allow Additions (allows/prevents adding new records). ... -
The Ox #2
Re: Problems when updating record
I have also tried using a LockType of 3 and still get the same error!
rsOutOrders.LockType = 3
Thanks
The Ox Guest



Reply With Quote

