Click here to Skip to main content
15,913,570 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Filter between two dates Pin
DaveAuld20-Sep-11 3:59
professionalDaveAuld20-Sep-11 3:59 
GeneralRe: Filter between two dates Pin
Lek Plepi20-Sep-11 4:12
Lek Plepi20-Sep-11 4:12 
AnswerRe: Filter between two dates Pin
Eddy Vluggen20-Sep-11 6:28
professionalEddy Vluggen20-Sep-11 6:28 
GeneralRe: Filter between two dates Pin
Lek Plepi20-Sep-11 20:58
Lek Plepi20-Sep-11 20:58 
AnswerRe: Filter between two dates Pin
Luc Pattyn20-Sep-11 4:57
sitebuilderLuc Pattyn20-Sep-11 4:57 
GeneralRe: Filter between two dates Pin
DaveAuld20-Sep-11 5:16
professionalDaveAuld20-Sep-11 5:16 
GeneralRe: Filter between two dates Pin
Lek Plepi20-Sep-11 21:03
Lek Plepi20-Sep-11 21:03 
GeneralRe: Filter between two dates Pin
DaveAuld20-Sep-11 21:23
professionalDaveAuld20-Sep-11 21:23 
All the information has been provided.

Simply append the datepicker date values to the query as per what has been shown above, e.g.

criteria = "Select *From tblSupply Where dateColumnName Between " + datePicker1.value + " AND " + datapicker2.value

You will need to change the dateColumnName and the controlsnames for datepickers and check the datepicker property name for the returned date value, i can't remember for sure of the top of my head if it is called value or not, but i'm sure you can look this up seeing as it is your project!

If you find that the second date value does not catch all the expected results, you might want to add 1 day to this value using DateAdd

Smile | :)
Dave
Find Me On: Web|Facebook|Twitter|LinkedIn

Folding Stats: Team CodeProject


GeneralRe: Filter between two dates Pin
Lek Plepi21-Sep-11 0:06
Lek Plepi21-Sep-11 0:06 
GeneralRe: Filter between two dates Pin
DaveAuld21-Sep-11 0:27
professionalDaveAuld21-Sep-11 0:27 
GeneralRe: Filter between two dates Pin
Lek Plepi21-Sep-11 0:30
Lek Plepi21-Sep-11 0:30 
GeneralRe: Filter between two dates Pin
DaveAuld21-Sep-11 0:37
professionalDaveAuld21-Sep-11 0:37 
GeneralRe: Filter between two dates Pin
Lek Plepi21-Sep-11 0:38
Lek Plepi21-Sep-11 0:38 
GeneralRe: Filter between two dates Pin
DaveAuld21-Sep-11 0:42
professionalDaveAuld21-Sep-11 0:42 
QuestionWhich event to connect to? Pin
Sonhospa19-Sep-11 21:21
Sonhospa19-Sep-11 21:21 
AnswerRe: Which event to connect to? Pin
DaveAuld20-Sep-11 0:00
professionalDaveAuld20-Sep-11 0:00 
GeneralRe: Which event to connect to? Pin
Sonhospa21-Sep-11 0:52
Sonhospa21-Sep-11 0:52 
AnswerRe: Which event to connect to? Pin
tosch20-Sep-11 4:35
tosch20-Sep-11 4:35 
GeneralRe: Which event to connect to? Pin
Sonhospa21-Sep-11 0:44
Sonhospa21-Sep-11 0:44 
QuestionVb6 website blocker Pin
Felicia Hadinata19-Sep-11 14:42
Felicia Hadinata19-Sep-11 14:42 
AnswerRe: Vb6 website blocker Pin
_Damian S_19-Sep-11 14:52
professional_Damian S_19-Sep-11 14:52 
GeneralRe: Vb6 website blocker Pin
Luc Pattyn19-Sep-11 14:57
sitebuilderLuc Pattyn19-Sep-11 14:57 
GeneralRe: Vb6 website blocker Pin
Felicia Hadinata19-Sep-11 14:58
Felicia Hadinata19-Sep-11 14:58 
AnswerRe: Vb6 website blocker Pin
Luc Pattyn19-Sep-11 15:07
sitebuilderLuc Pattyn19-Sep-11 15:07 
QuestionVB.NET 2008 The type initializer for ... threw an exception Pin
QuickBooksDev19-Sep-11 10:29
QuickBooksDev19-Sep-11 10:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.