Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I ... ?
Message
From
13/12/2000 16:27:20
 
 
To
13/12/2000 16:01:20
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Miscellaneous
Thread ID:
00452855
Message ID:
00453091
Views:
21
>>>>>>>>>>>>>>
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform