PC Review


Reply
Thread Tools Rate Thread

DataTable and NULL values

 
 
Peter
Guest
Posts: n/a
 
      15th Jul 2003
Is there a property/method to set the DataTable to allow
System.Convert.DBNull (for certain fields) when inserting
a record?

NOTE: There is only 1 table in this dataset with NO
relations or constraints.

By allowing this, I can test If MyTable("Field") Is
System.Convert.DBNull Then ...

Peter

 
Reply With Quote
 
 
 
 
Stephen Muecke
Guest
Posts: n/a
 
      16th Jul 2003
Set the AllowDBNull property of the DataColumn to True

Stephen

"Peter" <(E-Mail Removed)> wrote in message
news:049301c34b19$efc61e70$(E-Mail Removed)...
> Is there a property/method to set the DataTable to allow
> System.Convert.DBNull (for certain fields) when inserting
> a record?
>
> NOTE: There is only 1 table in this dataset with NO
> relations or constraints.
>
> By allowing this, I can test If MyTable("Field") Is
> System.Convert.DBNull Then ...
>
> Peter
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display queried records with Null values (null recordcount) Mishanya Microsoft Access Getting Started 6 25th Jan 2009 06:53 PM
NULL Values from DataTable assigned to Textbox creates error MU Microsoft ASP .NET 3 15th Jan 2009 07:46 PM
Empty text values aren't null or zero-length, but 2-byte null (\x0000) Mark Steward Microsoft Access 2 21st Jan 2006 02:03 PM
Datatable retrieving Null values - I'm stuck ! =?Utf-8?B?U3R1YXJ0?= Microsoft ASP .NET 2 16th Feb 2005 06:45 AM
Adding a Calculated column to a DataTable: How to handle w/ null values Sam Microsoft Dot NET Framework 1 8th Apr 2004 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:17 PM.