Click here to Skip to main content
15,884,176 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem in UDP socket connection. Pin
LloydA1114-Sep-10 3:40
LloydA1114-Sep-10 3:40 
GeneralRe: Problem in UDP socket connection. Pin
Expert Coming4-Sep-10 22:29
Expert Coming4-Sep-10 22:29 
GeneralRe: Problem in UDP socket connection. Pin
LloydA1115-Sep-10 2:58
LloydA1115-Sep-10 2:58 
GeneralRe: Problem in UDP socket connection. Pin
Dave Kreskowiak5-Sep-10 3:07
mveDave Kreskowiak5-Sep-10 3:07 
GeneralRe: Problem in UDP socket connection. Pin
LloydA1115-Sep-10 3:08
LloydA1115-Sep-10 3:08 
GeneralMessage Removed Pin
27-Oct-10 8:33
flflshop27-Oct-10 8:33 
GeneralRe: Problem in UDP socket connection. Pin
LloydA11127-Oct-10 8:39
LloydA11127-Oct-10 8:39 
QuestionHow to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Andraw Tang1-Sep-10 11:28
Andraw Tang1-Sep-10 11:28 
Hi, dear all,


I create a database using Access database.

There are some fields with data type Yes/No, I want to know to tell the difference of Null and False.

Right now even if I never set value for these field, they return false to me. I wants to clarify the difference.

I use the following code, but doesn't work, suppose I have a field called Marriage which is type Yes/No.

if user never fill in value for it, it should return Null, otherwise, return true or false

Dim obj as Object
obj = ResultSet.Tables(0).Rows(0).Item("Marriage")

If IsDBNull(obj) Then
return Nothing
ElseIf obj.ToString() = "True" Then
return True
Else
return False
End If

it always reutrn "False" to me.

Thanks!
AnswerRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Luc Pattyn1-Sep-10 12:54
sitebuilderLuc Pattyn1-Sep-10 12:54 
GeneralRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Andraw Tang1-Sep-10 13:01
Andraw Tang1-Sep-10 13:01 
GeneralRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Andraw Tang1-Sep-10 13:02
Andraw Tang1-Sep-10 13:02 
GeneralRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Luc Pattyn1-Sep-10 13:40
sitebuilderLuc Pattyn1-Sep-10 13:40 
QuestionTrying to Understand .NET 4 Parallelization Pin
Dominick Marciano1-Sep-10 6:41
professionalDominick Marciano1-Sep-10 6:41 
AnswerRe: Trying to Understand .NET 4 Parallelization Pin
Dave Kreskowiak1-Sep-10 7:34
mveDave Kreskowiak1-Sep-10 7:34 
GeneralRe: Trying to Understand .NET 4 Parallelization Pin
Dominick Marciano1-Sep-10 8:07
professionalDominick Marciano1-Sep-10 8:07 
AnswerRe: Trying to Understand .NET 4 Parallelization Pin
Luc Pattyn1-Sep-10 8:40
sitebuilderLuc Pattyn1-Sep-10 8:40 
GeneralRe: Trying to Understand .NET 4 Parallelization Pin
Dominick Marciano1-Sep-10 13:41
professionalDominick Marciano1-Sep-10 13:41 
GeneralRe: Trying to Understand .NET 4 Parallelization Pin
phil.o2-Sep-10 2:16
professionalphil.o2-Sep-10 2:16 
Questionbetter way to collect large amount of data from vb.net 2005 Pin
Andraw Tang1-Sep-10 3:30
Andraw Tang1-Sep-10 3:30 
AnswerRe: better way to collect large amount of data from vb.net 2005 Pin
Luc Pattyn1-Sep-10 3:42
sitebuilderLuc Pattyn1-Sep-10 3:42 
GeneralRe: better way to collect large amount of data from vb.net 2005 Pin
Andraw Tang1-Sep-10 3:48
Andraw Tang1-Sep-10 3:48 
GeneralRe: better way to collect large amount of data from vb.net 2005 Pin
David Mujica1-Sep-10 3:58
David Mujica1-Sep-10 3:58 
GeneralRe: better way to collect large amount of data from vb.net 2005 Pin
Andraw Tang1-Sep-10 4:01
Andraw Tang1-Sep-10 4:01 
GeneralRe: better way to collect large amount of data from vb.net 2005 Pin
Luc Pattyn1-Sep-10 4:02
sitebuilderLuc Pattyn1-Sep-10 4:02 
GeneralRe: better way to collect large amount of data from vb.net 2005 Pin
Andraw Tang1-Sep-10 4:05
Andraw Tang1-Sep-10 4:05 

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.