473,379 Members | 1,184 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Script errors

Can someone help me here. I am getting an error that I haven't seen before.

<%
SET teams1 = Conn.Execute("SELECT * FROM teams WHERE team_initials = '" &
var1 & "'")
SET teams_wins = Conn.Execute("SELECT count(username) as wins1 FROM
all_matches WHERE tour = " & var2 & " AND round = " & var3 & " AND team1 =
'" & var1 & "' AND outcome = 'Win' and extra_match = 0")
var4 = teams_wins.fields.item("wins1").value

the error is:

Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.

/logo/team_stats444.asp, line 96

I have checked, all the fields contain values. I am not sure if I have
written the script wrong, or if something else is the problem.

Bam
Dec 15 '05 #1
3 1216
nevermind, i did a response.write and found the problem
thanks
"Jeff" <gi*****@adelphia.net> wrote in message
news:mp********************@adelphia.com...
Can someone help me here. I am getting an error that I haven't seen
before.

<%
SET teams1 = Conn.Execute("SELECT * FROM teams WHERE team_initials = '" &
var1 & "'")
SET teams_wins = Conn.Execute("SELECT count(username) as wins1 FROM
all_matches WHERE tour = " & var2 & " AND round = " & var3 & " AND team1 =
'" & var1 & "' AND outcome = 'Win' and extra_match = 0")
var4 = teams_wins.fields.item("wins1").value

the error is:

Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.

/logo/team_stats444.asp, line 96

I have checked, all the fields contain values. I am not sure if I have
written the script wrong, or if something else is the problem.

Bam

Dec 15 '05 #2
Jeff wrote:
Can someone help me here. I am getting an error that I haven't seen
before.

<%
SET teams1 = Conn.Execute("SELECT * FROM teams WHERE team_initials =
'" & var1 & "'")
SET teams_wins = Conn.Execute("SELECT count(username) as wins1 FROM
all_matches WHERE tour = " & var2 & " AND round = " & var3 & " AND
team1 = '" & var1 & "' AND outcome = 'Win' and extra_match = 0")
var4 = teams_wins.fields.item("wins1").value

the error is:

Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.

/logo/team_stats444.asp, line 96

I have checked, all the fields contain values. I am not sure if I have
written the script wrong, or if something else is the problem.

Bam

You cannot debug a sql statement without knowing what it is. Assign the
result of your concatenation to a variable, Response.Write the variable and
look at it in the browser. If you've built the statment correctly, you
should be able to copy the statement from the browser window, open your
database in Access, create a new query in Design View using the Query
Builder, switch to SQL View, paste in the statement from the browser window
and run it without modification. If it fails, you will likely get a more
meaningful error message. If this does not help you solve your problem, get
back to us.

Again, the vast majority of this type of error can be avoided by using
parameters:
http://groups-beta.google.com/group/...e36562fee7804e

http://groups.google.com/groups?hl=e...tngp13.phx.gbl

http://groups.google.com/groups?hl=e...TNGP11.phx.gbl

http://www.google.com/groups?selm=eE...&output=gplain

http://www.google.com/groups?hl=en&l...TNGP12.phx.gbl
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 15 '05 #3
thanks Bob, you must have been posting as I was. I did the response write,
and found the error.
Thanks once again
Jeff
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:ea*************@TK2MSFTNGP11.phx.gbl...
Jeff wrote:
Can someone help me here. I am getting an error that I haven't seen
before.

<%
SET teams1 = Conn.Execute("SELECT * FROM teams WHERE team_initials =
'" & var1 & "'")
SET teams_wins = Conn.Execute("SELECT count(username) as wins1 FROM
all_matches WHERE tour = " & var2 & " AND round = " & var3 & " AND
team1 = '" & var1 & "' AND outcome = 'Win' and extra_match = 0")
var4 = teams_wins.fields.item("wins1").value

the error is:

Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.

/logo/team_stats444.asp, line 96

I have checked, all the fields contain values. I am not sure if I have
written the script wrong, or if something else is the problem.

Bam

You cannot debug a sql statement without knowing what it is. Assign the
result of your concatenation to a variable, Response.Write the variable
and
look at it in the browser. If you've built the statment correctly, you
should be able to copy the statement from the browser window, open your
database in Access, create a new query in Design View using the Query
Builder, switch to SQL View, paste in the statement from the browser
window
and run it without modification. If it fails, you will likely get a more
meaningful error message. If this does not help you solve your problem,
get
back to us.

Again, the vast majority of this type of error can be avoided by using
parameters:
http://groups-beta.google.com/group/...e36562fee7804e

http://groups.google.com/groups?hl=e...tngp13.phx.gbl

http://groups.google.com/groups?hl=e...TNGP11.phx.gbl

http://www.google.com/groups?selm=eE...&output=gplain

http://www.google.com/groups?hl=en&l...TNGP12.phx.gbl
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Dec 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: mikey_boy | last post by:
Hello! Curious if anyone could give me a hand. I wrote this PHP script with makes a simple connection to a mysql database called firstdb and just pulls back the results and displays on the...
1
by: BKM | last post by:
I'm using a VB6 WebBrowser control to get info from various web pages and, occasionally, my program stops when it finds a script error on the page. It won't resume until I click 'Yes' or 'No' on...
2
by: Raphael Gluck | last post by:
HI I am wondering if anyone can help me I added a little script to a form page, so that a couple of fields have to filled in. One contains an obligatory field for number data, one for regular...
6
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug:...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: Yansky | last post by:
Hi, I was just wondering if it is possible to disable script debugging in IE from within a script. I know I can disable it manually through the IE tools menu, but is it possible to disable it from...
3
by: John Kotuby | last post by:
Hey guys, In IE7 where I am tesing my Web Apps written with VB in VS 2005 I have set the IE option: "Display Notification of all script errors" to be active. Now that I have changed some...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
3
by: GazK | last post by:
I have been using an xml parsing script to parse a number of rss feeds and return relevant results to a database. The script has worked well for a couple of years, despite having very crude...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.