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

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 March 24th, 2007, 05:51 AM
djs74 djs74 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 2 djs74 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 29 m 6 sec
Reputation Power: 0
Please Help - Microsoft JET Database Engine error '80040e14'

Please can someone help I am new at this, I have a problem with the above error,

I have two files running

1. modifynews.asp - a form to complete
2. modifynewsexec.asp - the exec file that puts the code into a database.

If I want to put more than one line of news into the submit throws back:

Microsoft JET Database Engine error '80040e14'

Syntax error in query. Incomplete query clause.

/modifynewsexec.asp, line 16

I have checked thru the code but cant find out why I can enter one line but no more.

My Code:

modifynewsexec.asp:

<!--#include file="includes/dbconnection.asp"-->

<%
Dim cnnSimple
Dim rstSimple
Dim strDBPath

pmain = request("Mainnews")
pdiv1 = request("div1")
pdiv2 = request("div2")
pdiv3 = request("div3")
%>

<%
' UPDATE DIVISION DATA
SET rstSimple = cnnSimple.Execute ("UPDATE MainNews.* SET Mainnews='"&pmain&"', div1='"&pdiv1&"', div2='"&pdiv2&"', div3='"&pdiv3&"';")
%>

<%
RESPONSE.REDIRECT "adminhome.asp"
%>


ModifyNews.asp:


<!--#include file="includes/dbconnection.asp"-->
<!--#include file="navigation.asp"-->

<%
SET RSTSIMPLE = cnnSimple.Execute ("SELECT MainNews.*, MainNews.Mainnews AS Mainnews, MainNews.div1 As div1, MainNews.div2 As div2, MainNews.div3 As div3 FROM MainNews;")
%>

<%
pmain = rstSimple.Fields("Mainnews").value
pdiv1 = rstSimple.Fields("div1").value
pdiv2 = rstSimple.Fields("div2").value
pdiv3 = rstSimple.Fields("div3").value
%>
<form action="modifynewsexec.asp">
<font color="#7DACFB"><h3>Main News Update</h3><%pmain%><font size="-3">To Enter a Line Break You Cannot Just Press Enter You Must Type < br ></font></font>
<textarea cols="70" rows="5" name="Mainnews" style="background-color: Silver;"></textarea>

<font color="#7DACFB"><h3>Division 1 News Update</h3><%pdiv1%></font>
<textarea cols="70" rows="3" name="div1" style="background-color: Silver;"></textarea>

<font color="#7DACFB"><h3>Division 2 News Update</h3><%pdiv2%></font>
<textarea cols="70" rows="3" name="div2" style="background-color: Silver;"></textarea>

<font color="#7DACFB"><h3>Division 3 News Update</h3><%pdiv3%></font>
<textarea cols="70" rows="3" name="div3" style="background-color: Silver;"></textarea>

<br>

<input type="submit" name="Submit">

&nbsp;

<input type="reset" name="Reset">
</form>


The dbconnection.asp file :

<%
strDBPath = Server.MapPath("database/darts.mdb")

Set cnnSimple = Server.CreateObject("ADODB.Connection")

cnnSimple.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
%>

I would be greatful for any help.

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Please Help - Microsoft JET Database Engine error '80040e14'


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 5 hosted by Hostway
Stay green...Green IT