|
-
Jun 11th, 2010, 01:17 PM
#1
Thread Starter
Lively Member
Sql between and like
Hi Everyone!
I'm having a trouble with this line of code.
Rs.Open "SELECT * FROM Table WHERE Fname LIKE '%" & txtFname.Text & "%'" & " AND AVGRANK BETWEEN #1# AND #2#", con, adOpenDynamic, adLockOptimistic
How can i merge the 2?
I'm getting a syntax error in date in query expression.
Can somebody point me to the right direction?
TIA.
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
|