|
-
Dec 8th, 2012, 04:03 AM
#1
Thread Starter
Member
[RESOLVED] Problem in monthly records.
good day! im trying to search records between 2 dates (monthly,weekly). what is wrong with my query/code?
<code>
paramDate1 = CDate(DateFrom)
paramDate2 = CDate(DateTo)
Set rs = New ADODB.Recordset
rs.Open "Select * from tblEvents where EventDate between #" & paramDate1 & "# AND #" & paramDate2 & "#", cn, 3, 2
</code>
it didn't display monthly record but can display individual date (e.g records dated 12/1/2012 but not 12/1/2012 to 12/31/2012). can u pls give me some advice? or am i doing something wrong?
thanks guys.
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
|