Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

combine update and select statement in vb6 ado

63 views
Skip to first unread message

catharinus

unread,
Jan 28, 2011, 6:17:11 AM1/28/11
to
Hello my friends
I have a query that updates a column in TABELR.
The query collects selected data from TABELB where TABELB.Reken=
TABELR.Reken.

Because I do'n't know how to combine an update statement in a select
statement, I simply walk throuth the recorsset by moving from record
to the follwowing record:
Set mrsttest4 = conConnection.Execute("Select * from TABELR order by
reken")


do while mrst4.Eof = false
figure=conconnection.executte("Select bedrag from TABELB where....")
conconnection.execute(update TABELB.Bedrag = "& figure)
etc.
loop


But this is very slow, in fact too slow.


Any Idea?
Thanks
Catharinus

0 new messages