Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert sql to VB
Message
From
23/04/2002 23:21:57
Larry Santos
Local Data System
Philippines
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648174
Message ID:
00648512
Views:
14
>Can anyone help me to convert this SQL command into VB code.
>This is the SQL statement:
>
>SELECT * FROM QMIdouble WHERE edmemb IN (SELECT edmemb FROM QMIdouble Group by edmemb Having Count(DISTINCT(pmfdid + '-'+pmfdsf)) >1)
>
>It works fine in SQL, not in VB.
>Thanks in advance.

Hi,

dim cn as adodb.connection
set cn=new adodb.connection
cn.connectionstring="your connection string"
cn.open
cn.execute = "SELECT * FROM QMIdouble WHERE edmemb IN (SELECT edmemb FROM QMIdouble Group by edmemb Having Count(DISTINCT(pmfdid + '-'+pmfdsf)) >1)
"


Hoping it will work if not your sql statement got something wrong...
Previous
Reply
Map
View

Click here to load this message in the networking platform