Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Geek Stuff (http://www.geekboards.com/forums/forumdisplay.php?f=1)
-   -   BindingSource Filter Between Two Given Date (http://www.geekboards.com/forums/showthread.php?t=914)

snachala 03-14-2008 06:59 AM

BindingSource Filter Between Two Given Date
 
Hi All,
Im thinking if it is possible to filter records based on date1 and date2.
All this time Im using a different approach to filter it. I just put the
command like

"Select * From Invoices Where InvoicesDate Between DateValue('" + SelectedDate1.ToShortDateString + "') And DateValue('" + SelectedDate2.ToShortDateString + "') ORDER BY SO_NO DESC"


I've been using bindingsource.filter to filter it for a certain date but
is it possible if i select all records and filter it between a period?
What the syntax would be like to filter it between two given dates?


Thanx


All times are GMT -5. The time now is 04:12 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.