I am attempting to write some code that will return the name of the primary key field(s) of a form's underlying table/record source and also the table's name.
Reason:
I'm trying to create a log file which will store changes made to a number of fields in the database. These fields all come from separate tables and I already have a log for each individual table but would quite like to pool the data in one file. Hence the need to know which table is involved and the names of it's primary key field(s).
Any ideas?
Reason:
I'm trying to create a log file which will store changes made to a number of fields in the database. These fields all come from separate tables and I already have a log for each individual table but would quite like to pool the data in one file. Hence the need to know which table is involved and the names of it's primary key field(s).
Any ideas?