|
-
Oct 10th, 2002, 03:40 PM
#1
Thread Starter
Lively Member
[ADO] field property
Hi all!
someone can tell me how can I do to know if a field is NULLABLE and ALLOW_ZERO_LENGTH?
With ADODB, not ADOX.
Thank you!
-
Oct 10th, 2002, 03:56 PM
#2
PowerPoster
You may get Recordset.Fields("Field1").Type but it's probably not what you need.
-
Oct 10th, 2002, 04:00 PM
#3
Frenzied Member
VB Code:
If MyRec.Fields(1).Attributes And adFldIsNullable Then\
Debug.Print "This field is Nullable"
End If
Try this code...
-
Oct 10th, 2002, 04:06 PM
#4
PowerPoster
Yea, Attributes - forgot all about it.
-
Oct 11th, 2002, 06:09 AM
#5
Thread Starter
Lively Member
Originally posted by moinkhan
VB Code:
Debug.Print "This field is Nullable"
Try this code...
Yes, this seems to work 
And for the "allow zero length"?
Thanx!
-
Oct 11th, 2002, 06:37 AM
#6
Frenzied Member
Don't remember exactly but try the constant
adFldMayBeNull
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|