I keep on getting this error. I had an sql statement before and it works. I changed it and i get this error so i know it's within the sql statement. Does anybody know what is wrong?Code:
<% dim mysql set objconn = server.createobject("ADODB.connection") objconn.connectionstring = "dsn=prospect" objconn.open set objrs = server.createobject("ADODB.recordset") 'mysql = "select * from Prospect where asm = '" & Username & "' order by Prospects_Name ASC " mysql = "Select * from Prospect WHERE Status_Report.Prospect_Number = Prospect.Prospect_Number " objrs.open mysql, objconn %>
I needed to create a quick and simple "lock-in" system where many people in a computer lab can pick an answer (A, B, C, etc.) and then the results be displayed to me. I went looking for a free ASP poll script that would work for my needs. I found one called Poll Manager on AspPlanet.net (http://www.aspplanet.net/viewdl.asp?itemid=6). It gives me the ability to see the results with a bar graph of sorts and easily reset the data. I have everything set-up and working, however, I modified the results page so that it reloads using javascript every 5 seconds. After letting the page reload several times, I get the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
I can reload the page and often the error goes away, but sometimes it takes a few reloads. What could be causing this? The code can be found at aspplanet.net but I can also copy and paste it here if needed. Any ideas?
I am trying to peform a multiple deletion of records from a single table "Stockist"
I i keep getting the following Error and can't see where i am going wrong. Can anyone help?
Microsoft OLE DB Provider for ODBC Driverserror '80040e10' [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2. /RetailerStockProductRemove.asp, line 22
I'm querying 2 tables in 2 seperate recordsets and comparing set 2 to set 1 using ASP. If booking exists in set 2 that matches item in set 1 then I need to display the length item is booked for. I'm using a table with many cells and shading background to identify booked areas.
I've written a script that allows users to choose their own colors for the style sheet, but when I try to include the style sheet (style.inc), I get this error:
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/theroguehacker/style.inc, line 106
Line 106 is the end of the file... I've messed with it at least two hundred times... Please take a look and see if I'm doing it wrong. (I'm definately a beginner)
Also, I'm going to post the script that processes all the input. I'd like to know if there's an easier way to do it. Code:
i have a dropdown box with some values, i take that value and query the DB, i need to take that value and query across more than one column i set the up but am i have some problems i'm getting an error "Expected end of statement, Code:
I've walked myself through a Beginning ASP book and taken a class on SQL2000. I'm able to access my database on my server through a DataConn_Open.asp page. The code below is giving me back the error:
I have a link on our ebay auctions that goes to a request form where people can request to have samples of our product sent to them.
I'm trying to use a simple querystring to hold the model number of the product so the actual request form can put the value in a hidden field and get submitted into my database with the rest of the informaiton. Code:
I need the end statement to this sql query, but I am doing something wrong, is there site where they show you the different forms of ending sql statments in ASP? Code:
during the creation of an HTML page using asp variable I have this problem:
Microsoft VBScript compilation (0x800A0401) Expected end of statement /asp/pages/connect1_1.asp, line 27, column 35 strtable = strtable & "<tr valign="top">" &
I am building an application for inserting and updating one field in a database. The database is in SQL Server and I am using Classic ASP.
I have a dropdown listbox that is populated with names, when a name is selected it automatically submits the form and then replaces the dropdown listbox with the name of the resident selected. Now I need to take a field and split it into 2 textboxes. This is where my problems begin. The field is named ProblemO and looks something like this, Code:
Response.ContentType = "application/vnd.ms-excel";after downloading the same when i import it back to my system using Microsoft Excel driver, i got an error.
External table is not in the expected format. Do anyone know how to solve it?
When the ASP statement end with a _ character, then the next line cannot have comment ' character. Is that correct? Since I encountered the following error:
Microsoft VBScript compilation (0x800A0400) Expected statement
I have a simple website linking to an access database. The script works fine on my local machine. And it works fine on my regular host. However, I have uploaded the website to a Windows account with GoDaddy and here is my problem.
I am receiving the following error:
Microsoft JET Database Engine error '80040e10' No value given for one or more required parameters. /home.asp, line 10
- the WEIRD thing is that if you hit refresh enough times, the page loads fine. Then, at random (it appears), the error resurfaces. No coding changes at all. Code:
I've been coding since mainframes had 4MB of core memory (yes kiddies, that 4MB), I've never coded a classic ASP page, only ASP.NET. I've noticed many problems in this forum seem to stem from building SQL commands by concatenating strings and could be avoided by using parameter substitution, a totally common concept in ASP.NET. So, is that just something that can't be done in classic ASP?
My problem is: I've created an ASP/MS Access app with Dreamweaver. I have an admin page to edit/delete records. When I edit or delete a record, it works the first time and redirects me back to the main page.
When I click on another record it adds the URL parameter to the end of the previous URL parameter and I get an error. Is there a simple piece of code to check the URL for the same parameter so that it will not just add it to the end.
I am calling an ASP page from JavaScript using window.open(<URL>?<few parameters>) parameters can be in Japanese so I am using encodeURI to encode it. In the ASP files I am using Response.Charset="UTF-8" and still when I check the URL with Request.QueryString it looks OK,however when I call Request("<parameter name>") I get the parameter value not in UTF8 format but in ISO-8859-1, does anyone familiar with this? Is it a known bug with the Request object? Is there a way to force it to deal with the data as UTF-8?
Currently the only solution I have is to taker the value from QueryString and parse the whole URL by myself.
I am using the following code in asp to select some data from an access db. recSel is defined and set further up my webpage, as is rsUpdate User. I cannot work out how to get past this error message
Too few parameters. Expected 1. Can anyone see the problem?
I've had this error before but it was for a different type of command. Does anyone know what this means in relation to the highlighted code or what I might need to do to work on fixing it? Code:
I am trying to send the results of a form to a couple of email addresses, but it is not working. I am required to use a XSL file for this.
I usually don't have problems with sending the results of a form to email addresses because I don't use a XSL file or a complicated function. The XSL file is fine. It is the ASP page that has the problem. Can someone please help me with this? Code: