I have a main form (mainformlung) with 5 subforms (followupacute, followuplate, biochemresults, haemresults and pftresults). I have copied Allen Browne's Audit Trail code (thanks to Allen Browne) and this is working great, edit, insert etc is working bar when I try to delete a record in one of my subforms (I'm in test stage at the mo) I get a run time error 3022 'The changes you requested to the table where not successful because they would create duplicate values in the index, primary key or relationship, change the data in the field or fields and that contain duplicate data, remove the index or re define the index to permit duplicate entries and try again'. As I am sure you are all aware you have to use an index primary key field with Allen Brownes Audit Trail. When I delete the record it is written into the temporary audit table but can't be written into the 'permanent' audTable as there is already the same autonumber index causing duplication. Has anyone had a similar problem and can anyone suggest a fix, I've looked at Allen Browne's tips and bugs section to see if I can get a fix but I can see nothing obvious. I'm sorry if there is a very simple way to do this but i'm in brain freeze at the minute!
Thanks in advance experts!
PS. I'm using Access 2000.
Thanks in advance experts!
PS. I'm using Access 2000.
Comment