Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default ASP and MSAccess

    I am updating a MSAccess DB from a web page. I can read the database with no problem but my update and insert script are having problems.
    Example:
    INSERT INTO Inventory ( stock_num, year, cash_pay, down_pay, payment,image_sm, image_lg, Description) VALUES ( 'CH00099', '2005', 0, 695, 1200, '?????', '?????', 'This is a Test' )

    where "Inventory" is a MSAccess table returns:
    ***
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

    managebikes.asp, line 96
    ***
    Line 96 is the line to execute the script --> "Con.Execute sqlString" where sqlstring is the INSERT script above.

    I don't understand the problem here.

    Also my UPDATE script is:
    UPDATE Inventory SET year='2002', cash_pay=0, down_pay=500, payment=179, image_sm='small.jpg',image_lg='large.jpg', Description='XL 883 Custom - Black with 4300 miles' WHERE rTrim(lTrim(stock_num))='CH025'

    Again, Inventory is a MSAccess table. The following error msg it returned
    ***
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

    [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

    managebikes.asp, line 128
    ***
    Line 128 is the line to execute the script --> "Con.Execute sqlString" where sqlstring is the UPDATE script above.

    I don't understand thisproblem either. it is alomost identical to a script I use on another website to update a MSSQLServer DB, and it works fine there.

    Thanks in advance
    John








    JJWE webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Need Help with SQL statement. MSAccess
      I am new to cf and SQL and I want to display only the three most recent entries in the database. I tried (remember I'm a newbie) setting up an...
    2. Date::MSAccess V 1.01
      The pure Perl module Date::MSAccess V 1.01 is available immediately from CPAN, and from http://savage.net.au/Perl-modules.html. On-line docs,...
    3. Web Service with MSAccess
      Hello: What happens if you use a web service to acces a MSAccess dataBase? The problem is when I call the web service to access the data base,...
    4. From PDF to MSAccess
      is there any way of capturing data of a PDF document and making it an Access table? Thank you
    5. ASP + MSACCESS
      How can I check NTFS permission and how to give the IUSR account sufficient privileges to update the database which is in MSACCESS. It's always...
  3. #2

    Default Re: ASP and MSAccess

    It's a write permissions issue.
    The application development forum has a thread on this
    [url]http://webforums.macromedia.com/dreamweaver/messageview.cfm?catid=263&thread[/url]
    id=698827
    You should find the solution here

    Cheers
    Anna


    "JJWE" <webforumsuser@macromedia.com> wrote in message
    news:bl7ac1$8g2$1@forums.macromedia.com...
    > I am updating a MSAccess DB from a web page. I can read the database with
    no problem but my update and insert script are having problems.
    > Example:
    > INSERT INTO Inventory ( stock_num, year, cash_pay, down_pay,
    payment,image_sm, image_lg, Description) VALUES ( 'CH00099', '2005', 0, 695,
    1200, '?????', '?????', 'This is a Test' )
    >
    > where "Inventory" is a MSAccess table returns:
    > ***
    > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    >
    > [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
    query.
    >
    > managebikes.asp, line 96
    > ***
    > Line 96 is the line to execute the script --> "Con.Execute sqlString"
    where sqlstring is the INSERT script above.
    >
    > I don't understand the problem here.
    >
    > Also my UPDATE script is:
    > UPDATE Inventory SET year='2002', cash_pay=0, down_pay=500, payment=179,
    image_sm='small.jpg',image_lg='large.jpg', Description='XL 883 Custom -
    Black with 4300 miles' WHERE rTrim(lTrim(stock_num))='CH025'
    >
    > Again, Inventory is a MSAccess table. The following error msg it returned
    > ***
    > Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    >
    > [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
    >
    > managebikes.asp, line 128
    > ***
    > Line 128 is the line to execute the script --> "Con.Execute sqlString"
    where sqlstring is the UPDATE script above.
    >
    > I don't understand thisproblem either. it is alomost identical to a
    script I use on another website to update a MSSQLServer DB, and it works
    fine there.
    >
    > Thanks in advance
    > John
    >
    >
    >
    >
    >
    >
    >
    >

    Showpony Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139