Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 03-10-2005, 03:07 AM ASP Recordset Filter
Junior Talker

Posts: 2
Trades: 0
I have a calender that filters the recordset with the following command:
<% rsEventsDay.Filter = "EVE_DATED = #" & CurrentDay & "#" %>

EVE_DATED is the Event date in this calendar and i would like the calendar to show recorsets if they are inbetween 2 dates so i added the EVE_DATED2 and treat the EVE_DATED as the start date and the other as the end date of the event.

now i tried this command
<% rsEventsDay.Filter = "EVE_DATED > #" & CurrentDay & "#" AND rsEventsDay.Filter = "EVE_DATED2 < #" & CurrentDay & "#" %>
BUT it does not work!

I never used .Filter before previosly i used the WHERE sql statement. But the calendar i found was coded like this and this must be the easiest way to do it if anyone could give me an idea how to proceed.

I sourced the FAQ forum where i downloaded this calendar and no one have so far helped me out on this.
mhallin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-10-2005, 09:35 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Try this:
Code:
<% 
rsEventsDay.Filter = "EVE_DATED > #" & CurrentDay & "#"  & _
        " AND EVE_DATED2 < #" & CurrentDay & "#" 
%>
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 03-10-2005, 06:16 PM Thank you!!!
Junior Talker

Posts: 2
Trades: 0
Thank you it worked perfectly!!!
mhallin is offline
Reply With Quote
View Public Profile
 
Old 03-10-2005, 09:33 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
My pleasure
Anacrusis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASP Recordset Filter
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38525 seconds with 12 queries