ok.... i dont know why this wont work. this is going to access DB on web.
var1a = Request.Form("h 1")
var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " & var1b & "
WHERE ID = '1'"
Conn.Execute (strSQL)
looks good to me... but i get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2
i dont know what it is looking for. let me know if you need more
information. the field names are correct, the form field names are correct..
already looked at that.
Thanks for any help
Jeff 7 1639
Always, always, always, always, always, always first response.write your sql
string to find out what's going on.
var1a = Request.Form("h 1")
var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " & var1b & "
WHERE ID = '1'"
RESPONSE.WRITE STRSQL
RESPONSE.END
Do you see what's expected, and does what's returned work in the query thing
in Access itself?
Also see: http://groups.google.com/groups?q=od...tserver.asp.db
and http://groups.google.com/groups?q=bo...tserver.asp.db
Ray at work
"Jeff" <gi************ ****@verizon.ne t> wrote in message
news:Oi******** ********@TK2MSF TNGP14.phx.gbl. .. ok.... i dont know why this wont work. this is going to access DB on web.
var1a = Request.Form("h 1") var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " & var1b & " WHERE ID = '1'"
Conn.Execute (strSQL)
looks good to me... but i get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2 i dont know what it is looking for. let me know if you need more information. the field names are correct, the form field names are correct.. already looked at that.
Thanks for any help
Jeff
Thanks for the fast response. I should have mentioned that it did have the
correct data when i did what you asked.
UPDATE matches SET team1a = batmasterson, team1b = Billhickok WHERE ID = '1'
I am not sure what you mean by working in access itself. Are you asking me
to build a query in the access program? with the result of the write sql?
Jeff
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Always, always, always, always, always, always first response.write your
sql string to find out what's going on.
var1a = Request.Form("h 1") var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " & var1b &
" WHERE ID = '1'" RESPONSE.WRITE STRSQL RESPONSE.END
Do you see what's expected, and does what's returned work in the query
thing in Access itself?
Also see: http://groups.google.com/groups?q=od...tserver.asp.db and http://groups.google.com/groups?q=bo...tserver.asp.db Ray at work "Jeff" <gi************ ****@verizon.ne t> wrote in message news:Oi******** ********@TK2MSF TNGP14.phx.gbl. .. ok.... i dont know why this wont work. this is going to access DB on
web. var1a = Request.Form("h 1") var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " & var1b
& " WHERE ID = '1'"
Conn.Execute (strSQL)
looks good to me... but i get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2 i dont know what it is looking for. let me know if you need more information. the field names are correct, the form field names are correct.. already looked at that.
Thanks for any help
Jeff
Ok. I did put the returned info into access... when it ran.. it asked me for
parameters for the names that were there. which is weird. the names
themselves are what should have been put into the correct fields.
"Jeff" <gi************ ****@verizon.ne t> wrote in message
news:OP******** ******@TK2MSFTN GP09.phx.gbl... Thanks for the fast response. I should have mentioned that it did have the correct data when i did what you asked. UPDATE matches SET team1a = batmasterson, team1b = Billhickok WHERE ID =
'1' I am not sure what you mean by working in access itself. Are you asking me to build a query in the access program? with the result of the write sql?
Jeff
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Always, always, always, always, always, always first response.write your sql string to find out what's going on.
var1a = Request.Form("h 1") var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " & var1b
& " WHERE ID = '1'" RESPONSE.WRITE STRSQL RESPONSE.END
Do you see what's expected, and does what's returned work in the query thing in Access itself?
Also see: http://groups.google.com/groups?q=od...tserver.asp.db and
http://groups.google.com/groups?q=bo...tserver.asp.db Ray at work "Jeff" <gi************ ****@verizon.ne t> wrote in message news:Oi******** ********@TK2MSF TNGP14.phx.gbl. .. ok.... i dont know why this wont work. this is going to access DB on
web. var1a = Request.Form("h 1") var1b = Request.Form("h 2")
strSQL = "UPDATE matches SET team1a = " & var1a & ", team1b = " &
var1b & " WHERE ID = '1'"
Conn.Execute (strSQL)
looks good to me... but i get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected
2
i dont know what it is looking for. let me know if you need more information. the field names are correct, the form field names are correct.. already looked at that.
Thanks for any help
Jeff
"Jeff" <gi************ ****@verizon.ne t> wrote in message
news:OP******** ******@TK2MSFTN GP09.phx.gbl... Thanks for the fast response. I should have mentioned that it did have the correct data when i did what you asked. UPDATE matches SET team1a = batmasterson, team1b = Billhickok WHERE ID = '1'
Your text data needs to be delimited with the ' character.
UPDATE matches SET team1a='batmast erson',team1b=' Billhickok' WHERE ID='1'"
And is your ID really NOT a numeric field? The fact that you have that
delimited with the ' implies that it is not. That's odd, if so, I'd say.
I am not sure what you mean by working in access itself. Are you asking me to build a query in the access program? with the result of the write sql?
No, meaning, you can copy and paste the result of the Response.Write sql
into the query window in Access and run it to see what happens in there.
Ray at work
p.s. Also read this: http://www.aspfaq.com/show.asp?id=2035
Ray at work
"Jeff" <gi************ ****@verizon.ne t> wrote in message
news:OP******** ******@TK2MSFTN GP09.phx.gbl... Thanks for the fast response. I should have mentioned that it did have the correct data when i did what you asked. UPDATE matches SET team1a = batmasterson, team1b = Billhickok WHERE ID = '1'
Ok. I got it to work now.. i did leave the ' out.. and as fr as the ID.. it
should have been a number.. not sure why it wasn't.. but both of those
solved it for me.
thanks a million for your help
Jeff
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:ev******** ******@TK2MSFTN GP11.phx.gbl... p.s. Also read this:
http://www.aspfaq.com/show.asp?id=2035
Ray at work
"Jeff" <gi************ ****@verizon.ne t> wrote in message news:OP******** ******@TK2MSFTN GP09.phx.gbl... Thanks for the fast response. I should have mentioned that it did have
the correct data when i did what you asked. UPDATE matches SET team1a = batmasterson, team1b = Billhickok WHERE ID = '1'
You're quite welcome! :]
Ray at home
"Jeff" <gi************ ****@verizon.ne t> wrote in message
news:u8******** *****@TK2MSFTNG P11.phx.gbl... Ok. I got it to work now.. i did leave the ' out.. and as fr as the ID..
it should have been a number.. not sure why it wasn't.. but both of those solved it for me. thanks a million for your help This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bruce W...1 |
last post by:
In my effort to learn PHP I'm playing with some simple email scripts. They
worked a few days ago but they stopped working. The only thing I've done to
this Windows 2000 PC in this time was a Windows Update which I do regularly.
The only part of this update that might be related was an IE 6 update.
So I uninstalled and reinstaled PHP 4.3.3. The mail server setting is correct
in the php.ini file. But email is still not being sent.
...
|
by: Fox |
last post by:
I merged and modified these script which work perfectly fine
as long as I use server.execute to access the VBS
part (which is itself in another ASP file). When these
I use a session variable to pass an email address from
the database. I have had timeout problems
and buffer problems and as I understand it, maybe
a problem with changing the session variable too many
times in one session. So I tried putting the two scripts
on one page. When...
|
by: Mike |
last post by:
I'm using a script provided by e-mailanywhere, it's a little too big
for me.
There's 1 text field and 1 password field in a form.
OnSubmit, I would like both fields to be validated to look for invalid
digits (~`!#$%^&*()+=?/). This is not working yet, I don't know why.
In addition, I would like both fields to require from 1 to 12 digits
for submition to continue.
The text field also Lowers Case, can you tell me how to do the same on...
|
by: Bob Sanderson |
last post by:
I have a script that reads the computer date and writes it to a copyrite
footer on a web page. The idea is to avoid having to update each page
manually at the start of a new year. It works fine on Internet Explorer
but not on Mozilla.
Here's the script:
<script type="text/javascript" language="JavaScript">
copyright=new Date();
update=copyright.getYear();
|
by: one man army |
last post by:
Hi All-
I am new to PHP. I found FAQTS and the php manual. I am trying this
sequence, but getting 'no zip string found:'... PHP Version 4.4.0
$doc = new DomDocument;
$res = $doc->loadHTMLFile("./aBasicSearchResult.html");
if ( $res == true )
{
$zip = $doc->getElementById('zipRaw_id')->value;
if ( 0 != $zip ) {
| |
by: Q1tum |
last post by:
Hi all, I have a problem with my script, I'm using javascript DOM to
update my page.
The getPortals() function updates a select list whichs shows portals.
The doUpdate() function updates a portal and after that it re-builds
the select list by calling the getPortals function at the end of the
update function.
This is working in Opera (without the alert() at the doUpdate()
|
by: Chris Lieb |
last post by:
I am new to XML Schema and am running into a bit of a snag. I have
defined an XML-based scripting language for an updater program that I
am working on. I would like to make a schema for this language since
malformed XML documents break the updater. (I did not have time to add
good error-handling code, so run-time errors can abound if the document
is malformed.)
A sample doc might look something like this:
<manifest>
|
by: firstcustomer |
last post by:
Hi,
Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that
someone will be able to point me to a ready-made solution to my
problem!
A friend of mine (honest!) is wanting to have on his site, a Javascript
Calculator for working out the cost of what they want, for example:
1 widget and 2 widglets = £5.00
|
by: kkddrpg |
last post by:
the database looks like this
the database is called
username_tpp (not really just using username as a sub)
the table is called
home
it has
field 1 : varchar(50) | latin1_swedish_ci | no attributes | null = no |
default = (nothing) | extra = (nothing) | action = primary key |
comments = h
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |