PC Review


Reply
Thread Tools Rate Thread

Determining Field Attributes

 
 
Rob Diamant
Guest
Posts: n/a
 
      27th Feb 2006
I am trying to determine if an ADO field is nullable or required. I guess
since it is monday, my brain is not fully engaged. The field attributes
returns a value of 70 and I know adFldIsNullable is 20, but I need a clue on
how to see if the field is nullable.

TIA

Rob


 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      27th Feb 2006
To determine whether a particular value is part of a concatenated value, you
AND the two values together. If the result is 0, the value isn't part. If
the result is the particular value, it is.

Note that adFldIsNullable is actually 32 (20 is the hex value). Assuming
your value of 70 is also hex (so that it's 112 base ten), you can see that:

?112 And 32
32

so your field is nullable.


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Rob Diamant" <(E-Mail Removed)> wrote in message
news:eE%(E-Mail Removed)...
> I am trying to determine if an ADO field is nullable or required. I guess
> since it is monday, my brain is not fully engaged. The field attributes
> returns a value of 70 and I know adFldIsNullable is 20, but I need a clue

on
> how to see if the field is nullable.
>
> TIA
>
> Rob
>
>



 
Reply With Quote
 
Rob Diamant
Guest
Posts: n/a
 
      27th Feb 2006
Thanks Doug, you saved what hair I have left.

"Douglas J Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:(E-Mail Removed)...
> To determine whether a particular value is part of a concatenated value,
> you
> AND the two values together. If the result is 0, the value isn't part. If
> the result is the particular value, it is.
>
> Note that adFldIsNullable is actually 32 (20 is the hex value). Assuming
> your value of 70 is also hex (so that it's 112 base ten), you can see
> that:
>
> ?112 And 32
> 32
>
> so your field is nullable.
>
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Rob Diamant" <(E-Mail Removed)> wrote in message
> news:eE%(E-Mail Removed)...
>> I am trying to determine if an ADO field is nullable or required. I guess
>> since it is monday, my brain is not fully engaged. The field attributes
>> returns a value of 70 and I know adFldIsNullable is 20, but I need a clue

> on
>> how to see if the field is nullable.
>>
>> TIA
>>
>> Rob
>>
>>

>
>



 
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
Reflection: Determining a Method's Attributes from within the Method Good Enchiladas Microsoft Dot NET Framework 2 15th Apr 2004 01:28 PM
Reflection: Determining a Method's Attributes from within the Method Good Enchiladas Microsoft VC .NET 3 13th Apr 2004 03:04 PM
Reflection: Determining a Method's Attributes from within the Method Good Enchiladas Microsoft C# .NET 1 13th Apr 2004 10:49 AM
Reflection: Determining a Method's Attributes from within the Method Good Enchiladas Microsoft Dot NET 1 13th Apr 2004 08:41 AM
Reflection: Determining a Method's Attributes from within the Method Good Enchiladas Microsoft VB .NET 1 13th Apr 2004 07:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 AM.