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 1444
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
| |