ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 12th, 2000, 09:01 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Building an Insert String - Operation must use updateable query.

<i><b>Originally posted by : Ross McLanachan (rmclanac@lehman.com)</b></i><br />Hi there<br />I am using the below to write to a guestbook table in Access2000.<br />########################<br />'Build Insert String<br />strSQL = "INSERT INTO Guestbook(Name, Email, Date_Entered, URL, IP_Address, Message)"<br />strSQL = strSQL & " SELECT "<br />strSQL = strSQL & "'" & Name & "' as text1, " <br />strSQL = strSQL & "'" & Email & "' as text2, "<br />strSQL = strSQL & "'" & Date() & "' as text3, "<br />strSql = strSQL & "'" & URL & "' as text4, "<br />strSql = strsql & "'" & IPAddy & "' as text5, "<br />strSQL = strSQL & "'" & replace(request("Message"), "'", "''") & "' as text6 " <br />conn.execute(strSQL)<br />conn.close<br />set conn = nothing<br />#################<br /><br />It gives me the following error:<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80004005' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query. <br /><br />/cgi-bin/test/rmclanac/savemessage.asp, line 34 <br /><br /><br />=======<br />Can you please help me? Does anyone know how to get around this problem?<br />Any help would be much appreciated.<br />Thanks In Advance<br />Ross McLanachan<br /><br /><br /><br />

Reply With Quote
  #2  
Old May 12th, 2000, 10:29 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : steve</b></i><br />http://aspfree.com/asp/startpage.asp?id=98<br /><br /><br /><br />------------<br />Ross McLanachan at 5/12/2000 7:01:35 AM<br /><br />Hi there<br />I am using the below to write to a guestbook table in Access2000.<br />########################<br />'Build Insert String<br />strSQL = "INSERT INTO Guestbook(Name, Email, Date_Entered, URL, IP_Address, Message)"<br />strSQL = strSQL & " SELECT "<br />strSQL = strSQL & "'" & Name & "' as text1, " <br />strSQL = strSQL & "'" & Email & "' as text2, "<br />strSQL = strSQL & "'" & Date() & "' as text3, "<br />strSql = strSQL & "'" & URL & "' as text4, "<br />strSql = strsql & "'" & IPAddy & "' as text5, "<br />strSQL = strSQL & "'" & replace(request("Message"), "'", "''") & "' as text6 " <br />conn.execute(strSQL)<br />conn.close<br />set conn = nothing<br />#################<br /><br />It gives me the following error:<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80004005' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query. <br /><br />/cgi-bin/test/rmclanac/savemessage.asp, line 34 <br /><br /><br />=======<br />Can you please help me? Does anyone know how to get around this problem?<br />Any help would be much appreciated.<br />Thanks In Advance<br />Ross McLanachan<br /><br /><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Building an Insert String - Operation must use updateable query.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway