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.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
BindingSource Filter Between Two Given Date
Old 03-18-2008, 08:42 AM BindingSource Filter Between Two Given Date
Banned

Posts: 3
Trades: 0
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
zymulik is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-20-2008, 09:43 AM Re: BindingSource Filter Between Two Given Date
Ultra Talker

Posts: 310
Trades: 0
I am finding it difficult to understand your question, you're already filtering your records in the sql query based on the date. what other syntax you need?
dman_2007 is offline
Reply With Quote
View Public Profile
 
Old 03-24-2008, 05:55 PM Re: BindingSource Filter Between Two Given Date
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,522
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Don't worry about it. I doubt that the cross forum sig link dropping OP will be back to check.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to BindingSource Filter Between Two Given Date
 

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.15795 seconds with 12 queries