This is a new one for me,
I have a simple line of code to open a audit log
The button is found on a continuous subform, and just allows the user to see a audit history for the selected record.
My problem is that this subform has two optional combo boxes, and if even one is not populated the above code will not find the correct record and just show an empty form.
I can go find the records by hand (they really are in the table) and also if the combo boxes are filled in the subform the above code will find the correct record and everything works as planned.
Anyone run into this type of issue?
I have a simple line of code to open a audit log
Code:
DoCmd.OpenForm "frmAuditHistoryDetail_Audit", , , "[AuditHistoryID] = " & Me.AuditHistoryID.Value
The button is found on a continuous subform, and just allows the user to see a audit history for the selected record.
My problem is that this subform has two optional combo boxes, and if even one is not populated the above code will not find the correct record and just show an empty form.
I can go find the records by hand (they really are in the table) and also if the combo boxes are filled in the subform the above code will find the correct record and everything works as planned.
Anyone run into this type of issue?