Need help

Results 1 to 3 of 3

Thread: Need help

  1. #1
    Join Date
    Dec 1969

    Default Need help

    I am trying to insert a value into a table in a database, but it gives me an update error.<BR><BR>This is my code:<BR><BR>strDbPath = Server.MapPath(".") & "db1.mdb"<BR>ConnectStr = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & strDbPath<BR>sqlstring="INSERT INTO NameTable VALUES (&#039;B&#039;);"<BR>set con=server.createobject("ADODB.connection")<BR>con .open ConnectStr<BR>con.execute(sqlstring)<BR><BR>It gives me this error:<BR>Error Type:<BR>Microsoft OLE DB Provider for ODBC Drivers (0x80004005)<BR>[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.<BR>/BBB.asp, line 18<BR><BR>*The code works fine if I change it to a SELECT statement.

  2. #2
    Join Date
    Dec 1969

    Default permissions

    Check that "IUSR_yourmachinename" has permission to write to your Database!<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Need help

    Read the FAQs again. Under Database Errors there is an article which will tell you EXACTLY how to solve this problem.<BR><BR>Link is in the top-right, called "ASPFAQs".<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts