Presumably we are talking about this link:
http://allenbrowne.com/AppAudit.html
Why does your temp table need a primary key? If there is an important
reason, you could add the PK as the last field in the temp table, and then
add an extra Number field to the real audit table so that there is somewhere
to write this extra field. Alternatively, you could re-write the SQL
statements so that they call each field by name and ignore the PK of the
temp table.
--
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.
"law" <Ly***********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I'm duing Allen Browne's audit log but now I'm finding i have to have a
PK in the audTmp table. I've tried adding a PK field at which point
the auditing function quits working. Any ideas? Thanks.