Click here to Skip to main content
15,891,607 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Help regarding search in SQL database Pin
Dave Kreskowiak31-Aug-09 4:20
mveDave Kreskowiak31-Aug-09 4:20 
GeneralRe: Help regarding search in SQL database Pin
εїзεїзεїз31-Aug-09 6:02
εїзεїзεїз31-Aug-09 6:02 
GeneralRe: Help regarding search in SQL database Pin
Dave Kreskowiak31-Aug-09 8:55
mveDave Kreskowiak31-Aug-09 8:55 
GeneralRe: Help regarding search in SQL database Pin
εїзεїзεїз31-Aug-09 10:06
εїзεїзεїз31-Aug-09 10:06 
GeneralRe: Help regarding search in SQL database Pin
jeshra27931-Aug-09 17:52
jeshra27931-Aug-09 17:52 
GeneralRe: Help regarding search in SQL database Pin
Dave Kreskowiak1-Sep-09 1:23
mveDave Kreskowiak1-Sep-09 1:23 
AnswerRe: Help regarding search in SQL database Pin
Mycroft Holmes31-Aug-09 14:11
professionalMycroft Holmes31-Aug-09 14:11 
GeneralRe: Help regarding search in SQL database Pin
jeshra2795-Sep-09 3:50
jeshra2795-Sep-09 3:50 
Thanks. I am able to start working on the queries which You sent. But I am getting a small problem in this.
In my database, the date entered is in format, e.g. "08/10/2009 3:14:00 PM".
Now when i am choosing this date from my datetimepicker control, it selects the correct date, but not the time; i mean it selects the current time, say e.g. "08/10/2009 7:55:00 AM".
But I want to filter my database column using the selected date and time from the dateTimePicker control.

My code for filter is :

cmd = New SqlCommand(" SELECT * FROM client_details WHERE DateofJoining BETWEEN #" + Convert.ToDateTime(timefrm.ToString()) + "# AND #" + Convert.ToDateTime(timeto.ToString()) + "# ")

what are the steps involved after this to retrieve the data from the datagridview?

Consider in my example, "timefrm" is 08/10/2009 9:00:00 PM and "timeto" is "08/12/2009 9:00:00 PM" .
I mean, I want to filter my record between these dates and then count the number of filtered rows.

Can anyone help me on this?
GeneralRe: Help regarding search in SQL database Pin
Mycroft Holmes5-Sep-09 12:52
professionalMycroft Holmes5-Sep-09 12:52 
QuestionHow to send command to remote server.... Pin
Suresh Suthar31-Aug-09 1:51
professionalSuresh Suthar31-Aug-09 1:51 
AnswerRe: How to send command to remote server.... Pin
Dave Kreskowiak31-Aug-09 4:19
mveDave Kreskowiak31-Aug-09 4:19 
AnswerRe: How to send command to remote server.... Pin
LloydA11131-Aug-09 15:20
LloydA11131-Aug-09 15:20 
QuestionIsUserAdmin (Vista non-elevated) Pin
AB_dev30-Aug-09 23:55
AB_dev30-Aug-09 23:55 
AnswerRe: IsUserAdmin (Vista non-elevated) Pin
Luc Pattyn31-Aug-09 1:02
sitebuilderLuc Pattyn31-Aug-09 1:02 
GeneralRe: IsUserAdmin (Vista non-elevated) Pin
AB_dev31-Aug-09 2:09
AB_dev31-Aug-09 2:09 
GeneralRe: IsUserAdmin (Vista non-elevated) Pin
Luc Pattyn31-Aug-09 2:39
sitebuilderLuc Pattyn31-Aug-09 2:39 
AnswerRe: IsUserAdmin (Vista non-elevated) Pin
AB_dev31-Aug-09 4:09
AB_dev31-Aug-09 4:09 
GeneralQuery For Getting Last Child Note - Sourabh Das Pin
Dot Net Jantu30-Aug-09 22:54
Dot Net Jantu30-Aug-09 22:54 
GeneralRe: Query For Getting Last Child Note - Sourabh Das Pin
Mycroft Holmes30-Aug-09 23:12
professionalMycroft Holmes30-Aug-09 23:12 
QuestionAbout Crystal Report Viewer using Dataset Pin
drexler_kk30-Aug-09 21:31
drexler_kk30-Aug-09 21:31 
AnswerRe: About Crystal Report Viewer using Dataset Pin
Mycroft Holmes30-Aug-09 22:53
professionalMycroft Holmes30-Aug-09 22:53 
QuestionRe: About Crystal Report Viewer using Dataset Pin
drexler_kk30-Aug-09 23:25
drexler_kk30-Aug-09 23:25 
AnswerCrystal Report using Dataset Pin
David Mujica31-Aug-09 3:20
David Mujica31-Aug-09 3:20 
AnswerRe: About Crystal Report Viewer using Dataset Pin
εїзεїзεїз31-Aug-09 6:30
εїзεїзεїз31-Aug-09 6:30 
QuestionEditable DataGridViewComboBoxColumn Pin
C#Coudou30-Aug-09 19:37
C#Coudou30-Aug-09 19:37 

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.