Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
JJWE webforumsuser@macromedia.com #1
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
-
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... -
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,... -
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,... -
From PDF to MSAccess
is there any way of capturing data of a PDF document and making it an Access table? Thank you -
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... -
Showpony #2
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...no problem but my update and insert script are having problems.> I am updating a MSAccess DB from a web page. I can read the database withpayment,image_sm, image_lg, Description) VALUES ( 'CH00099', '2005', 0, 695,> Example:
> INSERT INTO Inventory ( stock_num, year, cash_pay, down_pay,
1200, '?????', '?????', 'This is a Test' )query.>
> 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 updateablewhere sqlstring is the INSERT script above.>
> managebikes.asp, line 96
> ***
> Line 96 is the line to execute the script --> "Con.Execute sqlString"image_sm='small.jpg',image_lg='large.jpg', Description='XL 883 Custom ->
> 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,
Black with 4300 miles' WHERE rTrim(lTrim(stock_num))='CH025'where sqlstring is the UPDATE script above.>
> 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"script I use on another website to update a MSSQLServer DB, and it works>
> I don't understand thisproblem either. it is alomost identical to a
fine there.>
> Thanks in advance
> John
>
>
>
>
>
>
>
>
Showpony Guest



Reply With Quote

