G
Guest
i'm a beginner using Access 2003. what i want to do is to automate the
process of setting the first field of all the tables in one of my databases
as a primary key.i was thinking if i could count the number of tables in my
database(i don't know how to use the count function in access),and maybe use
a FOR loop in a way that it would get the table, go to the first field, using
the 'Alter table' statement set it as a PK, commit the changes and go to the
next table and so on until it reaches the last table in the database. is
there any other way of doing it?
process of setting the first field of all the tables in one of my databases
as a primary key.i was thinking if i could count the number of tables in my
database(i don't know how to use the count function in access),and maybe use
a FOR loop in a way that it would get the table, go to the first field, using
the 'Alter table' statement set it as a PK, commit the changes and go to the
next table and so on until it reaches the last table in the database. is
there any other way of doing it?