Click here to Skip to main content
15,887,394 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Saving Data Pin
Dave Kreskowiak4-Apr-08 8:12
mveDave Kreskowiak4-Apr-08 8:12 
GeneralRe: Saving Data Pin
tibmark4-Apr-08 8:19
tibmark4-Apr-08 8:19 
GeneralRe: Saving Data Pin
Dave Kreskowiak4-Apr-08 9:36
mveDave Kreskowiak4-Apr-08 9:36 
GeneralRe: Saving Data Pin
jzonthemtn4-Apr-08 8:33
jzonthemtn4-Apr-08 8:33 
GeneralRe: Saving Data Pin
tibmark4-Apr-08 8:40
tibmark4-Apr-08 8:40 
GeneralRe: Saving Data Pin
A Wong4-Apr-08 8:57
A Wong4-Apr-08 8:57 
GeneralVB.net/excel/access - problem with strings and dates Pin
AHeavey4-Apr-08 6:59
AHeavey4-Apr-08 6:59 
GeneralRe: VB.net/excel/access - problem with strings and dates Pin
Dave Kreskowiak4-Apr-08 8:08
mveDave Kreskowiak4-Apr-08 8:08 
Well, you're biggest problem is that teh .NET 2.0 DateTime type is a structure, not a class, and therefore cannot ever be Nothing (null in C#). So, Date.Parse will fail when trying to parse String.Empty or any invalid date representation (including Nothing) into a Date value.

You're going to have to provide code that you can call with a value from each column from your Excel data that returns either a correct Date object or returns a DBNull value, possibly using Date's TryParse method. The existing Date structure methods won't do this for you.

You also have a problem with your database table using a string to represent a Date instead of the database's native DateTime type for a column. You'll have to rewrite your IncidentReportAdd method to accept Date objects instead of strings representing dates.


A guide to posting questions on CodeProject[^]



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




Generalapplication created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 4:29
Chun24-Apr-08 4:29 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Dave Kreskowiak4-Apr-08 5:08
mveDave Kreskowiak4-Apr-08 5:08 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 5:36
Chun24-Apr-08 5:36 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Dave Kreskowiak4-Apr-08 5:57
mveDave Kreskowiak4-Apr-08 5:57 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! [modified] Pin
Chun24-Apr-08 6:41
Chun24-Apr-08 6:41 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Dave Kreskowiak4-Apr-08 7:47
mveDave Kreskowiak4-Apr-08 7:47 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! [modified] Pin
Chun24-Apr-08 8:22
Chun24-Apr-08 8:22 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Dave Kreskowiak4-Apr-08 8:35
mveDave Kreskowiak4-Apr-08 8:35 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 8:42
Chun24-Apr-08 8:42 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 9:52
Chun24-Apr-08 9:52 
QuestionRe: application created on vista using vb.net does not run on my xp computer!! Pin
Steven J Jowett4-Apr-08 5:39
Steven J Jowett4-Apr-08 5:39 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 5:43
Chun24-Apr-08 5:43 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
jzonthemtn4-Apr-08 8:37
jzonthemtn4-Apr-08 8:37 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
Chun24-Apr-08 8:46
Chun24-Apr-08 8:46 
GeneralRe: application created on vista using vb.net does not run on my xp computer!! Pin
KrisnNala4-Apr-08 22:26
KrisnNala4-Apr-08 22:26 
GeneralHelp in getting the IP address dynamically Pin
aaraaayen4-Apr-08 1:24
aaraaayen4-Apr-08 1:24 
GeneralRe: Help in getting the IP address dynamically Pin
nlarson114-Apr-08 4:00
nlarson114-Apr-08 4:00 

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.