R
RzB
I want to update some table/field/attributes from VBA code...
I need to make the fields Required, Indexed and NoDuplicates...
I have the syntax to do the Required thing
Set tdf = dbBE.TableDefs("tblWhatever")
tdf.Fields("fldWhatever").Required = True
but how do I do the Indexed and NoDuplicates
Have searched google and the help but can't find this info...
Also...
What happens to existing data in tables that does
not follow these "new" rules... When do I get the torrent
of errors ?
Thanks,
Roy
I need to make the fields Required, Indexed and NoDuplicates...
I have the syntax to do the Required thing
Set tdf = dbBE.TableDefs("tblWhatever")
tdf.Fields("fldWhatever").Required = True
but how do I do the Indexed and NoDuplicates
Have searched google and the help but can't find this info...
Also...
What happens to existing data in tables that does
not follow these "new" rules... When do I get the torrent
of errors ?
Thanks,
Roy