Question : error - operation must use an updateable query

I am trying to update an Access database  and am getting this error: 'operation must use an updateable query'.
Here is the code  that processes data gathered from a form:

<%
Dim connect
Set connect = Server.CreateObject("ADODB.Connection")
connect.Mode = 3      '3 = adModeReadWrite
connect.Open "my_database"

Dim newrecordset, strSQL, query, newpackcode, newcountry, newairline, newpacktitle, neworder, newteaser
Dim newteaser2, newhdimage, newissue, newstart, newend, newperiod, newdesc, newincludes, currentcode

currentcode = Request("prevpackcode")

query = "(UPDATE Packages SET PackageCode = '" & ucase(request("editpackcode")) & "', AirlineCode = '" & request("editairline") & "', CountryCode = '" & request("editCountry") & "', Title = '" & (request("edittitle")) & "' WHERE PackageCode = '" & currentcode & "')"

Set newrecordset = connect.Execute(query)
%>


I have checked the permissions and they seem to be OK, so I can only assume it's my script.

Jenny

Answer : error - operation must use an updateable query

I would check to make sure the tables you are updateing have a primary key defined.  

Random Solutions  
 
programming4us programming4us