Solved

asp UPDATE Query to MS Access DB

Posted on 2012-04-01
2
279 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.​
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

756 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