Gareth Newman
New member
- Local time
- Today, 07:07
- Joined
- Jul 20, 2023
- Messages
- 3
Hi,
I am using a module called "AuditTrail" for recording changes made to records.
It works fine on primary forms with the code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Call AuditTrail(Me, Job_number)
End Sub
with job_number being the primary key index in the linked table.
The form has a number of subforms however that relate to different tables and I cannot get the module to work from these.
I am sure it is just a simple syntax issue but having tried a number of options, I cannot find the answer. Any help would be appreciated.
Gareth
I am using a module called "AuditTrail" for recording changes made to records.
It works fine on primary forms with the code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Call AuditTrail(Me, Job_number)
End Sub
with job_number being the primary key index in the linked table.
The form has a number of subforms however that relate to different tables and I cannot get the module to work from these.
I am sure it is just a simple syntax issue but having tried a number of options, I cannot find the answer. Any help would be appreciated.
Gareth