Click here to Skip to main content
15,909,898 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to load & Unload form in vb.net ? Pin
zanzmera25-Jan-09 9:27
zanzmera25-Jan-09 9:27 
AnswerRe: How to load & Unload form in vb.net ? Pin
ivo7525-Jan-09 9:40
ivo7525-Jan-09 9:40 
AnswerRe: How to load & Unload form in vb.net ? Pin
Dave Kreskowiak25-Jan-09 10:07
mveDave Kreskowiak25-Jan-09 10:07 
AnswerRe: How to load & Unload form in vb.net ? Pin
Ashutosh Phoujdar26-Jan-09 19:15
Ashutosh Phoujdar26-Jan-09 19:15 
QuestionProblem to insert data from DateTimePicker to Access database Pin
ivo7525-Jan-09 8:42
ivo7525-Jan-09 8:42 
AnswerRe: Problem to insert data from DateTimePicker to Access database Pin
Wendelius25-Jan-09 9:18
mentorWendelius25-Jan-09 9:18 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
ivo7525-Jan-09 9:36
ivo7525-Jan-09 9:36 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
Wendelius25-Jan-09 9:52
mentorWendelius25-Jan-09 9:52 
Yes it does and also it can be done for dates and numbers.

Access accepts dates in format #mm/dd/yyyy#. So for example today would be #01/25/2009# (without quotes).

However, I hope that you don't take this shortcut since it's not the proper way to go. I already mentioned sql injections which is prevented by using parameters. To give a few more examples that would be problematic:

  • numbers, what if decimal separator is comma (as it is for example in my case). When updating a column you would have for example UPDATE ... SET ColumnName = 49,6 ... This would lead to an error
  • text, what if your text contains a quote, for example: UPDATE ... SET ColumnName = 'Guns 'n' Roses'. Error again
  • dates, input date is in different format. For example I use 25.1.2009 (Finnish format) etc.

So what I'm trying to say is that it's few more lines of code, but the quality and robustness of your application will greatly improve when you use parameters.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
ivo7525-Jan-09 9:55
ivo7525-Jan-09 9:55 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
Wendelius25-Jan-09 10:05
mentorWendelius25-Jan-09 10:05 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
ivo7525-Jan-09 21:19
ivo7525-Jan-09 21:19 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
ChandraRam25-Jan-09 22:23
ChandraRam25-Jan-09 22:23 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
Wendelius26-Jan-09 5:17
mentorWendelius26-Jan-09 5:17 
AnswerRe: Problem to insert data from DateTimePicker to Access database Pin
Mr Oizo26-Jan-09 1:13
Mr Oizo26-Jan-09 1:13 
AnswerRe: Problem to insert data from DateTimePicker to Access database Pin
ivo7526-Jan-09 6:23
ivo7526-Jan-09 6:23 
QuestionInsert New Line in File Stream Pin
IvanIT25-Jan-09 5:56
IvanIT25-Jan-09 5:56 
AnswerRe: Insert New Line in File Stream Pin
N a v a n e e t h25-Jan-09 6:04
N a v a n e e t h25-Jan-09 6:04 
GeneralRe: Insert New Line in File Stream Pin
IvanIT25-Jan-09 6:42
IvanIT25-Jan-09 6:42 
GeneralRe: Insert New Line in File Stream Pin
Dave Kreskowiak25-Jan-09 10:05
mveDave Kreskowiak25-Jan-09 10:05 
GeneralRe: Insert New Line in File Stream Pin
IvanIT26-Jan-09 7:46
IvanIT26-Jan-09 7:46 
GeneralRe: Insert New Line in File Stream Pin
Dave Kreskowiak26-Jan-09 11:35
mveDave Kreskowiak26-Jan-09 11:35 
GeneralRe: Insert New Line in File Stream Pin
IvanIT26-Jan-09 12:36
IvanIT26-Jan-09 12:36 
QuestionRemote Connection MSSQL Express2005 Pin
r_mohd25-Jan-09 3:52
r_mohd25-Jan-09 3:52 
AnswerRe: Remote Connection MSSQL Express2005 Pin
Wendelius25-Jan-09 4:18
mentorWendelius25-Jan-09 4:18 
QuestionMCiWnd api problem. Pin
V.G24-Jan-09 18:31
V.G24-Jan-09 18:31 

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.