Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

ErrorCode 80040e14 Description Syntax error (missing operator) in query expression

$
0
0

Hi folks,

I was wondering if somebody could provide some assistance.. I've been battling with this absolutely atrocious app for weeks now. 

Company I work for is INSISTANT on using a 16 year old banner manager and refuses to use anything else at all. Don't ask.. I've tried. 

So now I'm stuck trying to get this thing to work. I've absolutely no experience with classic ASP and it has been a slow, painful process... so here's what I have thus far.

It can use either SQLOLEDB to an MSSQL DB or it can use a local Access flatfile. 

If configured to use MSSQL it works until I attempt to submit data from editbanners.asp. This results in:

LineNumber
140 

ErrorCode
80040e21 

Description
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. 

This error was a nightmare as it led me on about 5 days worth of fruitless research. Every solution I found to this irritatingly vague error was not the solution for me. So finally I gave up and that led to;

If configured to use the flatfile Access database. Submitting data from editbanners.asp then works, however when attempting to view the data via searchbanners.asp I get a brand new, shiny error:

LineNumber
441 

ErrorCode
80040e14 

Description
Syntax error (missing operator) in query expression 'advertiserid='. 
 


This, I'm just completely lost with. 

<td height="1" bgcolor="#999999"></td></tr><tr align="center"> <td width="100%" valign="top" align="left"><b><font face="Arial, Helvetica, sans-serif" size="2">Go 
      to Page : <select name="pageselector" onchange="javascript:gopage(this.value);" ><%
		for counter=1 to maxcount
		if counter-mypage=0 then sel=" selected" else sel=""
			response.write "<option value="&counter&sel&">"&counter&"</option>"
		next
		%></select><script language="JavaScript">
	  function gopage(what){
	  	self.location.href='<%=scriptname%>&orderby=<%=server.urlencode(orderby)%>&whichpage=' + what;
	  }</script><%if cint(mypage)>1 then response.write "<a href='"&scriptname&"&whichpage="&mypage-1&"'>&lt;&lt;</a> "  
	  if cint(mypage)<maxcount then response.write "<a href='"&scriptname&"&whichpage="&mypage+1&"'>&gt;&gt;</a>"%></font></b></td>

Line 441 begins - self.location.href in the above snippet. 

I'm really at a loss. I can usually troubleshoot/diagnose issues with web applications or at least trace the majority of the problem as a Sys Admin but with this stuff I just keep finding one problem after the next. It took me AGES to work out that entire files were written in encoded VB. Not having a developer on the team is an enormous hindrence. 

Any help in even narrowing down any of the problems would be greatly appreciated. Before my brain melts.. 

In the following zip file is two full error traces, one for each of the two errors and both .asp files for your perusal. 

https://corefmadvertising.azurewebsites.net/aspsadness.zip


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>