![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I generally set this to true for all fields other than fields that I specify as required. Considering the default value is false I am wondering if it is a good or bad practise to set it true? |
#3
| |||
| |||
|
|
On Thu, 11 Mar 2010 19:51:55 -0800 (PST), Mat matthew.kay (AT) optusnet (DOT) com.au> wrote: I think it's bad, because it will be difficult to distinguish between NULL and a ZLS (zero-length string). So you'll often write: select * from myTable where myField is null or myfield="" I prefer to use NULL exclusively. -Tom. Microsoft Access MVP I generally set this to true for all fields other than fields that I specify as required. Considering the default value is false I am wondering if it is a good or bad practise to set it true? |
#4
| |||
| |||
|
|
I generally set this to true for all fields other than fields that I specify as required. Considering the default value is false I am wondering if it is a good or bad practise to set it true? |
#5
| |||
| |||
|
|
Hi Mat, The availability of NULL-values for dates and numerics is essential. For text- and memo-fields I have not yet - after 25 years - found any preference of using NULL-values over zero-length-strings. In all tables I use NULL-values as default, because Access97 did that. And ONE way of working (always NULL) is far better than a mixed way of working. Recently I changed all my metadata-controls with text-values to zero- length-string-defaults. In all the string-manipulation it is not necessary anymore to make exceptions for NULL-values. So, in due time, if I have very much time, I plan to change to the other ONE way of working: always zero-length-string in text and memo- fields. HBInc. |
#6
| |||
| |||
|
|
Hi Mat, The availability of NULL-values for dates and numerics is essential. For text- and memo-fields I have not yet - after 25 years - found any preference of using NULL-values over zero-length-strings. In all tables I use NULL-values as default, because Access97 did that. And ONE way of working (always NULL) is far better than a mixed way of working. Recently I changed all my metadata-controls with text-values to zero- length-string-defaults. In all the string-manipulation it is not necessary anymore to make exceptions for NULL-values. So, in due time, if I have very much time, I plan to change to the other ONE way of working: always zero-length-string in text and memo- fields. HBInc. Thanks for that reply. So the option is really asking me to choose between null or zero length? AllowZeroLength = true 'means vbnullstring AllowZeroLength = false 'means null If AllowZeroLength is true, "" would be valid. |
#7
| |||
| |||
|
|
In all tables I use NULL-values as default, because Access97 did that. And ONE way of working (always NULL) is far better than a mixed way of working. Recently I changed all my metadata-controls with text-values to zero- length-string-defaults. In all the string-manipulation it is not necessary anymore to make exceptions for NULL-values. So, in due time, if I have very much time, I plan to change to the other ONE way of working: always zero-length-string in text and memo- fields. |
#8
| |||
| |||
|
|
Thanks for that reply. So the option is really asking me to choose between null or zero length? AllowZeroLength = true 'means vbnullstring |
|
AllowZeroLength = false 'means null |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Recently I changed all my metadata-controls with text-values to zero- length-string-defaults. In all the string-manipulation it is not necessary anymore to make exceptions for NULL-values. |
![]() |
| Thread Tools | |
| Display Modes | |
| |