Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do multiple find ?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00384377
Message ID:
00384525
Vues:
46
I don't want to use the Filter, it's very big Recordset, even I don't want to use Find.

Can I change my SQL statment in the record set without reopen it Iam using this code
with rstUnits
.Active connection = myConn
etc....
.Source = "SELECT * FROM units ORDER BY unitname_a"
.open
End With

>>>Hi,
>>>Does Recordset.Find support multiple find, like if I want to find data in 2 or 3 fields in the same command : ex
>>>RecordSet.Find buildingname=2 and unittype=10 and unitno=30 ??
>>>
>>
>>I forgat to say this is using ADO.
>
>You can't find multi-criteria.
>
>You have to alternative to that:
>
>-Use the Where clause of your Select query to replace some of your criteria.
>-Use the ADO Filter property (which can accept multiple criteria). Be advise that the Filter can be very slow on a large recordset.
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform