|
-
Nov 22nd, 2000, 11:46 AM
#1
Thread Starter
Addicted Member
Hi all,
I am trying to run a query to find all dates in a given period using 2 DTPickers. I can manage ok when only using 1 DTPicker but I can't seem to get it using the BETWEEN method. Here is a the piece of code I am trying:
Dim fd As Date
Dim ld As Date
Dim wt As String
fd = DTPicker1.Value
ld = DTPicker2.Value
wt = cmbWatch.Text
rsAllDates.Open "SELECT * FROM Staff_Dets
WHERE Date_From BETWEEN('" & fd & "' And '" & ld & "')
AND Location_Code = '" & lc & "'"
Cheers
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
|