iam using codes which only execute first query. in loop other queries i can
write screen them but only first query making executed.. why?
for bul=0 to sayac-1
set rssil=server.CreateObject("adodb.recordset")
sil="update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='"&session.SessionID&"' and urunadi='"&delitema(bul)&"'"
baglantimiz.execute(sil)
set rssil= nothing
next 6 1443
What is the value of sayac?
Ray at work
"Savas Ates" <sa***@indexinteractive.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl... iam using codes which only execute first query. in loop other queries i
can write screen them but only first query making executed.. why?
for bul=0 to sayac-1
set rssil=server.CreateObject("adodb.recordset") sil="update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi=' ' where sesid='"&session.SessionID&"' and urunadi='"&delitema(bul)&"'" baglantimiz.execute(sil) set rssil= nothing next
value of sayac more than 1
now value of sayac=3
Time for some debugging. See below:
Savas Ates wrote: iam using codes which only execute first query. in loop other queries i can write screen them but only first query making executed.. why?
Response.Write sayac & "<BR>" for bul=0 to sayac-1
Response.Write bul & "<BR>"
The following line is not needed set rssil=server.CreateObject("adodb.recordset")
sil="update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi=' ' where sesid='"&session.SessionID&"' and urunadi='"&delitema(bul)&"'"
Response.Write sil & "<BR>"
This: baglantimiz.execute(sil)
should be this:
baglantimiz.execute(sil,,129) 'adCmdText + adExecuteNoRecords
The following line is not needed set rssil= nothing
next
Run the page and look at the results of the response.write statements. If
they don't show you what is wrong, show them to us.
HTH,
Bob Barrows
--
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.
code is
Response.Write sayac & "<BR>"
for bul=0 to sayac-1
Response.Write bul & "<BR>"
sil="update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='"&session.SessionID&"' and urunadi='"&delitema(bul)&"'"
response.write sil&"<br>"
baglantimiz.execute(sil,,129) 'adCmdText + adExecuteNoRecords
next
cant use , call a sub
error line baglantimiz.execute(sil,,129) 'adCmdText + adExecuteNoRecords
output result is
4
0
update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='891158220' and urunadi='LSZAW002W0'
1
update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='891158220' and urunadi=' L300C-01AC'
2
update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='891158220' and urunadi=' PRS-201'
3
update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='891158220' and urunadi=' STR-400-1V'
code is
Response.Write sayac & "<BR>"
for bul=0 to sayac-1
Response.Write bul & "<BR>"
sil="update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi='
' where sesid='"&session.SessionID&"' and urunadi='"&delitema(bul)&"'"
response.write sil&"<br>"
baglantimiz.execute(sil)
next
still only first query executed. what is the problem...
It says that you cannot use parentheses when calling a Sub.
baglantimiz.Execute sil,, 129
Ray at work
"Savas Ates" <sa***@indexinteractive.com> wrote in message
news:es****************@TK2MSFTNGP10.phx.gbl... code is
Response.Write sayac & "<BR>" for bul=0 to sayac-1 Response.Write bul & "<BR>"
sil="update [sheet3$] set
urunid='',sesid='',num='',marka='',modeladi='',fiy at='',tlfiyat='',urunadi=' ' where sesid='"&session.SessionID&"' and urunadi='"&delitema(bul)&"'" response.write sil&"<br>" baglantimiz.execute(sil,,129) 'adCmdText + adExecuteNoRecords
next
cant use , call a sub error line baglantimiz.execute(sil,,129) 'adCmdText + adExecuteNoRecords
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tim Williams |
last post by:
I'm trying to write a simple python program to access a MySQL
database. I'm having a problem with using MySQLdb to get the results
of a SQL command in a cursor. Sometimes the cursor.execute works,...
|
by: Jill Graham |
last post by:
Hi,
I'm using an access database and found following problem :
I have a table X with 2 records : record 1 & record 2. I execute following
procedure with 2 steps :
1. The procedure deletes...
|
by: dbb9h |
last post by:
I've noticed a problem with calls to server.execute on a webserver
running IIS 5.0.
The call is used to conditionally include some asp code according to
the language, but there seem to exist...
|
by: Gustavo Randich |
last post by:
Hello,
I'm writing an automatic SQL parser and translator from Informix to
DB2. Now I'm faced with one of the most difficult things to translate,
the "foreach execute procedure" functionality...
|
by: Eli |
last post by:
Hi all
We currently have a strange problem with calling a Stored Procedure
(SQL Database) in our C# Project. The only error I get is "System
error" which says a lot :)
Background:
We have...
|
by: Christine.Misseri |
last post by:
Hi all,
I'm sure someone knows about this problem. I have an Access database
designed in Access 2000, connected to an ORACLE 8i back end. On the
ORACLE side I have stored procedures, triggers...
|
by: HeislerKurt |
last post by:
I'm getting the infamous error, "Too few parameters. Expected 2", when
executing an update SQL statement in VBA. I assume it's a SQL syntax
issue, but I can't find the problem, and I used a VBA...
|
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= |
last post by:
I am trying to replace a huge chunck of code that currently I incorporate
with an #Include directive. The program rarely has to flow through that
code, so I thought it would be better if I used...
|
by: RAG2007 |
last post by:
I'm using the QueryDef and Execute method to update a record in my MySQL backend.
Problem: When the Passthrough update query is defined using QueryDef, it becomes a select query, and I cannot use...
|
by: mikegolden |
last post by:
An application I'm working on makes extensive use of output parameters and return values, thus forcing me to use the ADODB Command object to execute the stored procs. For recordset returning stored...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |