Solved

asp UPDATE Query to MS Access DB

Posted on 2012-04-01
2
281 Views
Last Modified: 2012-04-05
I have an asp page that generates an error when attempting to update a table in an Access database.  If I copy and paste the SQL query directly into Access it works just fine.  Error generated on the "adoCmd.Execute"  command is:

 "-2147467259 [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query. "


Dim adoCon, rsDatabase, strSQL                           

strSQL = "UPDATE 201204 SET AM='R', PM='R' WHERE D1='01';"

Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("charter.mdb")
Set rsdatabase = Server.CreateObject("ADODB.Recordset")
Set adoCmd = Server.CreateObject("ADODB.Command")
adoCmd.ActiveConnection = adoCon
adoCmd.CommandText = strSQL
adoCmd.Execute
0
Comment
Question by:MERCOMMS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
plummet earned 150 total points
ID: 37793676
Hi

Check out this MS support article: http://support.microsoft.com/kb/175168

It may well be one of the issues listed in there. I hope so!
0
 

Author Closing Comment

by:MERCOMMS
ID: 37812209
It was a permissions issue.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Merge join vs exist 3 37
Estimating my database size 7 51
Error creating summetric key on SQL 2012 (Amazon) 7 48
Notepad++ Question 11 28
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
A short article about problems I had with the new location API and permissions in Marshmallow
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question