Click here to Skip to main content
15,914,335 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to close form1 from form3 Pin
Suman Singh21-Mar-05 12:35
professionalSuman Singh21-Mar-05 12:35 
GeneralRe: How to close form1 from form3 Pin
Dave Kreskowiak21-Mar-05 13:37
mveDave Kreskowiak21-Mar-05 13:37 
QuestionHow to perform an adodc1.recordset.find Pin
bhbadz200521-Mar-05 5:52
bhbadz200521-Mar-05 5:52 
Generalobtaining a RAS IP address Pin
Dahoolio21-Mar-05 3:18
Dahoolio21-Mar-05 3:18 
Questionhow to convert a NULL smalldatetime in sql query? Pin
Lisana21-Mar-05 2:42
Lisana21-Mar-05 2:42 
AnswerRe: how to convert a NULL smalldatetime in sql query? Pin
Colin Angus Mackay21-Mar-05 3:44
Colin Angus Mackay21-Mar-05 3:44 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
Lisana21-Mar-05 4:12
Lisana21-Mar-05 4:12 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
Colin Angus Mackay21-Mar-05 4:32
Colin Angus Mackay21-Mar-05 4:32 
Okay - You are using a SqlDataReader, I assumed you had a dataset. By the way, if you are extracting data through a data reader then using a data adapter is redundant. Just build the SqlCommand object and use that.

Anyway, I've modified your code:

DataReader = DataAdapter.SelectCommand.ExecuteReader()
Do While DataReader.Read()
    If Not DataReader.IsDBNull(0) Then
        OrderDate = DataReader.GetDateTime(0)
    Else
        ' Do something else because the data time is null
    End If
Loop


Does this help?

Disclaimer - I typed this directly. There may be typos, syntax errors, etc.


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
Lisana21-Mar-05 4:46
Lisana21-Mar-05 4:46 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
Colin Angus Mackay21-Mar-05 4:53
Colin Angus Mackay21-Mar-05 4:53 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
Lisana21-Mar-05 5:43
Lisana21-Mar-05 5:43 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
mtone21-Mar-05 9:24
mtone21-Mar-05 9:24 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
Lisana21-Mar-05 9:52
Lisana21-Mar-05 9:52 
GeneralRe: how to convert a NULL smalldatetime in sql query? Pin
mtone21-Mar-05 13:48
mtone21-Mar-05 13:48 
GeneralVB.Net creating a wizard Pin
john3420-Mar-05 22:21
john3420-Mar-05 22:21 
Generaloops forgot Pin
Anonymous20-Mar-05 22:24
Anonymous20-Mar-05 22:24 
GeneralRe: oops forgot Pin
Dave Kreskowiak21-Mar-05 1:59
mveDave Kreskowiak21-Mar-05 1:59 
GeneralYES Thats It BUT HOW ??? Pin
Anonymous7-Apr-05 4:56
Anonymous7-Apr-05 4:56 
GeneralAdjusting the length of scrollbar using VB.Net Pin
kerene20-Mar-05 17:00
kerene20-Mar-05 17:00 
GeneralRe: Adjusting the length of scrollbar using VB.Net Pin
Dave Kreskowiak20-Mar-05 17:24
mveDave Kreskowiak20-Mar-05 17:24 
Generalvb and pdfs Pin
evilfruitman20-Mar-05 15:38
evilfruitman20-Mar-05 15:38 
GeneralRe: vb and pdfs Pin
Christian Graus20-Mar-05 15:58
protectorChristian Graus20-Mar-05 15:58 
GeneralRe: vb and pdfs Pin
Tony2220-Mar-05 17:25
Tony2220-Mar-05 17:25 
GeneralRe: vb and pdfs Pin
Christian Graus20-Mar-05 17:34
protectorChristian Graus20-Mar-05 17:34 
Questionchang the shape of vb6 form? Pin
a_yosef20-Mar-05 6:54
a_yosef20-Mar-05 6:54 

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.