Click here to Skip to main content
15,917,061 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do you filter a binding source date by year?
VB
Me.tblComplaintLogBindingSource.Filter = "Date = '" & frmYear.ComboBox1.Text & "'"

My date is MM/dd/yyyy format
Posted
Updated 10-Nov-12 5:50am
v2

1 solution

Hi,
your code would work, if the 'Date' column would only hold the year. So I guess, extracting the year out of the column 'Date' or compare 'Date' with an actual Datestring should work. Have a look at the reference: MSDN[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900