Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: difference between these code Pin
SoyDesarrollador.net12-Oct-12 8:50
SoyDesarrollador.net12-Oct-12 8:50 
QuestionXML parsing function returns 0 instead of stored value Pin
iyl7813-Sep-12 15:17
iyl7813-Sep-12 15:17 
QuestionWeb User Account and login Pin
Addo Henry12-Sep-12 5:34
Addo Henry12-Sep-12 5:34 
AnswerRe: Web User Account and login Pin
Simon_Whale12-Sep-12 5:46
Simon_Whale12-Sep-12 5:46 
QuestionVB(Aplication) Pin
JAFTA11-Sep-12 16:18
JAFTA11-Sep-12 16:18 
AnswerRe: VB(Aplication) Pin
Dave Kreskowiak11-Sep-12 17:31
mveDave Kreskowiak11-Sep-12 17:31 
QuestionHow to get value from database when user chooses month Pin
garyu8711-Sep-12 3:24
garyu8711-Sep-12 3:24 
AnswerRe: How to get value from database when user chooses month Pin
Dave Kreskowiak11-Sep-12 3:44
mveDave Kreskowiak11-Sep-12 3:44 
Get the month and year from the user then use the DateTime.DaysInMonth method to get the number of days in that month.

When you have those two things, you can make two DateTime objects using the month and year supplied by the user. Use the 1st of the month to start the date range and the number of days returned by DaysInMonth to create the second date value.

There's your date range. You just supply those two dates to a couple of parameters in your SQL query (PLEASE USE PARAMETERIZED QUERIES AND NOT STRING CONCATINATION!!) to retrieve the data.

If you don't know what a parameterized query is, Google for "VB.NET SQL Parameterized Query".

GeneralRe: How to get value from database when user chooses month Pin
garyu8711-Sep-12 4:01
garyu8711-Sep-12 4:01 
GeneralRe: How to get value from database when user chooses month Pin
David Mujica11-Sep-12 4:28
David Mujica11-Sep-12 4:28 
GeneralRe: How to get value from database when user chooses month Pin
garyu8711-Sep-12 4:47
garyu8711-Sep-12 4:47 
QuestionHow to Display real time ECG in VB6 ? Pin
Nisarg Solanki10-Sep-12 21:01
Nisarg Solanki10-Sep-12 21:01 
AnswerRe: How to Display real time ECG in VB6 ? Pin
Eddy Vluggen11-Sep-12 1:46
professionalEddy Vluggen11-Sep-12 1:46 
Questionpassing parameter in report viewer by using visual studio 2010 Pin
sali2210-Sep-12 18:23
sali2210-Sep-12 18:23 
QuestionSystem Tray Icon Question Pin
RodgerDJr10-Sep-12 7:19
RodgerDJr10-Sep-12 7:19 
AnswerRe: System Tray Icon Question Pin
Wes Aday10-Sep-12 8:12
professionalWes Aday10-Sep-12 8:12 
GeneralRe: System Tray Icon Question Pin
RodgerDJr12-Sep-12 4:53
RodgerDJr12-Sep-12 4:53 
GeneralRe: System Tray Icon Question Pin
Wes Aday12-Sep-12 5:08
professionalWes Aday12-Sep-12 5:08 
QuestionRe: System Tray Icon Question Pin
RodgerDJr12-Sep-12 5:32
RodgerDJr12-Sep-12 5:32 
AnswerRe: System Tray Icon Question Pin
Wes Aday12-Sep-12 5:39
professionalWes Aday12-Sep-12 5:39 
GeneralRe: System Tray Icon Question Pin
RodgerDJr12-Sep-12 5:42
RodgerDJr12-Sep-12 5:42 
GeneralRe: System Tray Icon Question Pin
Wes Aday12-Sep-12 8:18
professionalWes Aday12-Sep-12 8:18 
Questionhelp Pin
habdul10-Sep-12 1:57
habdul10-Sep-12 1:57 
AnswerRe: help Pin
Wes Aday10-Sep-12 2:18
professionalWes Aday10-Sep-12 2:18 
RantRe: help Pin
Eddy Vluggen10-Sep-12 2:42
professionalEddy Vluggen10-Sep-12 2:42 

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.