|
-
Nov 7th, 2002, 05:09 AM
#1
Thread Starter
Lively Member
Selecting records between two dates
I want to select records between two dates from a table.
StartDate and EndDate are two Dates but the code below does not seem to work. I get an operator/operand type mismatch.
rstChkdisb.Open "select * from mytable where ck_date >= " & StartDate & " And ck_date <= " & EndDate & " ORDER BY ck_no", Cnn2, adOpenStatic, adLockReadOnly
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
|