Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB + Multiple Access Databases = Nightmare?
Message
De
22/07/2001 23:48:41
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
22/07/2001 23:18:20
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00533754
Message ID:
00533758
Vues:
26
Not sure if this is going to help as I didn't have the full details of exactly what you are doing so it's tough to provide sample code. usually if I am working with multiple recordsets I'll do the following:

rst1.open "SELECT tbl1.ID, tbl1.SomeField FROM tbl1;"
with rst1
do wile not .eof
rst2.open "SELECT * from tbl2 WHERE tbl2.ID = " & rst1.fields("tbl1.ID") & ";"
'do some work with for importing, deleting and updating using this or more recordsets
rst2.close
.movenext
loop
end with
rst1.close
set rst1 = nothing
set rst2 = nothing

This way you only go through the first recordset once. Hopefully I'm answering along what you needed to know. Cheers.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform