Any help is greatly appreciated.
Thanks,
Wolfgang
From Access 2000's help on Allow Zero Length property:
Note To access a field's AllowZeroLength property by using Visual Basic,
use the DAO AllowZeroLength property or the ADO Column.Properties("Set
OLEDB:Allow Zero Length") property.
See also the help topic "Set Properties of ActiveX Data Objects in Visual
Basic".
Hope this helps,
Neil.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Neil McKechnie
Microlink Associates Ltd
Ne...@MicrolinkAssociates.couk
"Wolfgang Kaml (MS)" <m...@no-spam.kaml.com> wrote in message
news:e7IeU9ak...@TK2MSFTNGP11.phx.gbl...
Function FixZLS()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Dim fld As DAO.Field
Dim prp As DAO.Property
Const conPropName = "AllowZeroLength"
Const conPropValue = True
Set db = DBEngine(0)(0)
For Each tdf In db.TableDefs
If (tdf.Attributes And dbSystemObject) = 0 Then
Debug.Print tdf.Name
For Each fld In tdf.Fields
If fld.Properties(conPropName) Then
Debug.Print tdf.Name & "." & fld.Name
fld.Properties(conPropName) = False
End If
Next
End If
Next
Set prp = Nothing
Set fld = Nothing
Set tdf = Nothing
Set db = Nothing
End Function
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Wolfgang Kaml (MS)" <m...@no-spam.kaml.com> wrote in message
news:e7IeU9ak...@TK2MSFTNGP11.phx.gbl...
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Wolfgang Kaml" <m...@no-spam.kaml.com> wrote in message
news:OC7NFYek...@TK2MSFTNGP09.phx.gbl...