Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I ... ?
Message
De
13/12/2000 16:27:20
 
 
À
13/12/2000 16:01:20
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00452855
Message ID:
00453091
Vues:
22
>>>>>>>>>>>>>>
>I'm trying to create an ADO Recordset and when I want to assign it source property I put an SQL Statement like this:
>
>"Select * from mytable where mytable.code = " & strcode & " and mytable.year & mytable.month >= intYear & intMonth"
>>>>>>>>>>>>>>
>
>Does it work if you say:
>
>
>"Select * from mytable where mytable.code = " & strcode & _
>"and mytable.year >= intYear and mytable.month >= intMonth"
>
If strcode is really a string it wouldn't (against most databases anyway). Also, if intYear and intMonth are really variables of the calling program and not field names this would either cause an error or return an empty recordset.

But I guess from all the responses there should be something that works.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform