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

Visual Basic

 
AnswerRe: How to close form1 from form3 Pin
Dave Kreskowiak21-Mar-05 12:22
mveDave Kreskowiak21-Mar-05 12:22 
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 
I'm doing the OleDbDataReader in the vb appl.

THis is my code:

Dim OrderDate as date

Dim DataAdapter As New OleDbDataAdapter
Dim DataReader As OleDbDataReader
**connecting***
**sql query**
Select dateOrder from orderTable
***
DataReader = DataAdapter.SelectCommand.ExecuteReader()
Do While DataReader.Read()
OrderDate = DataReader.GetDateTime(0)
Loop

lblOrderDate.text = OrderDate

Where should I check the value of the column before using it?
If the dateOrder is Null, then this OrderDate = DataReader.GetDateTime(0) will get error.

THanks

Lisa
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 
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 

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.