Click here to Skip to main content
15,895,011 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Vignesh Krishnan2-Apr-08 22:58
Vignesh Krishnan2-Apr-08 22:58 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Dave Kreskowiak3-Apr-08 3:29
mveDave Kreskowiak3-Apr-08 3:29 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Vignesh Krishnan3-Apr-08 20:04
Vignesh Krishnan3-Apr-08 20:04 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Dave Kreskowiak4-Apr-08 3:04
mveDave Kreskowiak4-Apr-08 3:04 
Questionsearch a range of data by date to display in datagrid view Pin
zaimah2-Apr-08 16:49
zaimah2-Apr-08 16:49 
GeneralRe: search a range of data by date to display in datagrid view Pin
Dave Kreskowiak3-Apr-08 3:27
mveDave Kreskowiak3-Apr-08 3:27 
QuestionRe: search a range of data by date to display in datagrid view Pin
zaimah3-Apr-08 14:43
zaimah3-Apr-08 14:43 
GeneralRe: search a range of data by date to display in datagrid view Pin
Dave Kreskowiak4-Apr-08 5:15
mveDave Kreskowiak4-Apr-08 5:15 
OK, it sounds like you really need to pickup a beginners book on VB.NET and work through it.

Your database should not be storing dates and times as strings. This makes it very difficult to retrieve a set of records between two dates. They should be stored as SQL Date types instead.

When you go to search the database for records between two entered dates, you have to convert the text entered by the user (this is a string) to a DateTime object. Look at the documentation for DateTime.TryParse[^] for this.

When you get the two dates, you use them as parameters in a parameterized SQL query that does the searching. That's where that article link I posted comes in. That shows you how to setup and use parameterized queries. Concantenting strings together makes for some very bad, and easily breakable, SQL code that can be difficult to find bugs in.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




QuestionRe: search a range of data by date to display in datagrid view Pin
zaimah6-Apr-08 14:55
zaimah6-Apr-08 14:55 
Questionhow to get URL of already running firefox in vb.net application Pin
bhavin12302-Apr-08 16:38
bhavin12302-Apr-08 16:38 
AnswerRe: how to get URL of already running firefox in vb.net application Pin
Richard Andrew x642-Apr-08 17:34
professionalRichard Andrew x642-Apr-08 17:34 
GeneralRe: how to get URL of already running firefox in vb.net application Pin
bhavin12302-Apr-08 17:51
bhavin12302-Apr-08 17:51 
GeneralRe: how to get URL of already running firefox in vb.net application Pin
Richard Andrew x642-Apr-08 18:00
professionalRichard Andrew x642-Apr-08 18:00 
AnswerRe: how to get URL of already running firefox in vb.net application Pin
bhavin12303-Apr-08 16:31
bhavin12303-Apr-08 16:31 
GeneralApplication Licensing Pin
Mitch F.2-Apr-08 12:46
Mitch F.2-Apr-08 12:46 
GeneralRe: Application Licensing Pin
Thomas Stockwell2-Apr-08 15:27
professionalThomas Stockwell2-Apr-08 15:27 
GeneralRe: Application Licensing Pin
Richard Andrew x642-Apr-08 17:40
professionalRichard Andrew x642-Apr-08 17:40 
GeneralRe: Application Licensing Pin
Colin Angus Mackay2-Apr-08 22:54
Colin Angus Mackay2-Apr-08 22:54 
GeneralRe: Application Licensing Pin
Mitch F.3-Apr-08 16:20
Mitch F.3-Apr-08 16:20 
GeneralRe: Application Licensing Pin
Mark Churchill2-Apr-08 19:02
Mark Churchill2-Apr-08 19:02 
GeneralRe: Application Licensing Pin
Mitch F.2-Apr-08 20:20
Mitch F.2-Apr-08 20:20 
Questionhelp required for displaying autocad dwg files in vb6 form Pin
Anil V. Chaudhary2-Apr-08 3:19
Anil V. Chaudhary2-Apr-08 3:19 
GeneralRe: help required for displaying autocad dwg files in vb6 form Pin
Dave Kreskowiak2-Apr-08 3:40
mveDave Kreskowiak2-Apr-08 3:40 
Questiongiving permissions to user to access file in vb.net 2.0 Pin
vijaylumar2-Apr-08 1:06
vijaylumar2-Apr-08 1:06 
GeneralRe: giving permissions to user to access file in vb.net 2.0 Pin
pmarfleet2-Apr-08 11:59
pmarfleet2-Apr-08 11:59 

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.