|
-
Jan 11th, 2007, 04:27 PM
#1
Thread Starter
Addicted Member
SQL Statement Question (VB6)
Hello,
I have an SQL question. I am using VB6 in an app, and want to use the ADODC control to search my data (which is an Excel 2000 file).
The SQL statement I am trying to do would search fields called Product #1, Product #2, and Product #3. I was trying the following code, but it is not working.
Private Sub Command1_Click()
Adodc1.RecordSource = "Select * from [Sheet1$] Where [Product #1] = "Widget (CD) And [Product #2] = "Widget (CD) And [Product #3] = "Widget (CD)"
Adodc1.Refresh
End Sub
Any ideas or SQL tutorial links would be appreciated. Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|