Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2008, 12:08 AM
new member
 
Join Date: Aug 2008
Posts: 8
Default ASP insert, edit and delete driving me mad

Hi

Yesterday I opened an account with WH UK to host my web site. All asp files have now been uploaded and an Access database uploaded with a dsn connection set.

Select statements work with no problems, data from the database gets displayed to screen ok - although I have noticed that all my dates are appearing to screen in US format, when they were in uk format in the local environment.

Anyway, testing my pages via my web address has shown that my insert, update and delete functionality is not working since I made my connection to database with DSN - it was mappath in the local environment and everything worked smoothly.

The insert and update error message I get is -

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

/appointmentsDay.asp, line 565

whilst the delete error message is -

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Could not delete from specified tables.

/admin.asp, line 221

Do you think it is something to do with the new account or a scripting problem?

Thanks, I need to get this sorted out by Thursday for a job interview.

Last edited by jennyWren; 08-31-2008 at 12:18 AM. Reason: problem with code
Reply With Quote
  #2 (permalink)  
Old 08-31-2008, 12:15 AM
new member
 
Join Date: Aug 2008
Posts: 8
Default

The code to insert looks like this

set conn=Server.CreateObject("ADODB.Connection")
conn.Mode = 3
conn.open "creaturecomDSN"


Dim records
conn.Execute "INSERT INTO appts(timeAppt,dateAppt,clientIDAppt,patientIDAppt ,roomNo) Values" & _
"('" & varTime & "','" & varDate & "','" & varClient & "','" & varPatient & "','" & varRoomNo & "')" , records


Is there anything wrong with it for a dsn connection?
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 09:34 AM
new member
 
Join Date: Aug 2008
Posts: 8
Default

Eventually I got read/write permissions on httpdocs from WH UK - a day later, what a waste of time. But now I can delete, update and insert ok. The matter is now sorted.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:27 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum