G
Guest
Just need some help please with the syntax to make a Schema change in Access
from VBA.
For instance (one that works) :-
Set tbd = dbs.TableDefs("tblAL")
tbd.Fields("AssM").AllowZeroLength = True
This sets property of field AssM to allow zero length.
I need something like :-
Set tbd = dbs.TableDefs("tblAL")
tbd.Fields("Booked").Format = ShortDate
basically, field Booked is a DATETIME field and I would like to set it to a
short date(dd/mm/yy - 97) or (dd/mm/yyyy - 2k onwards).
Can you help with syntax?
Thanks.
from VBA.
For instance (one that works) :-
Set tbd = dbs.TableDefs("tblAL")
tbd.Fields("AssM").AllowZeroLength = True
This sets property of field AssM to allow zero length.
I need something like :-
Set tbd = dbs.TableDefs("tblAL")
tbd.Fields("Booked").Format = ShortDate
basically, field Booked is a DATETIME field and I would like to set it to a
short date(dd/mm/yy - 97) or (dd/mm/yyyy - 2k onwards).
Can you help with syntax?
Thanks.