I have an Access 2003 database used to research unemployment claims. The main form contains a subform in datasheet view listing the employee claim records, including employee Social security number. I would like them to be able to double Click a record in this datasheet and have it open a subform, populated from a Query that is passed the SSN from the recordset that was clicked. I have included the following code in the vba:
The form does open on double click, if I look at the for properties, the filter is set to the correct SSN, but the records will not display. I know I am missing something obvious, please help.
Code:
Private Sub Form_DblClick(Cancel As Integer) DoCmd.OpenForm "ClaimDetail", , , "[SSN] = " & Me!ImportSsN End Sub
Comment