Hello. I have a subform that I would like to double click on the [ClaimNumber] field to set the record to the value in the textbox. I have tried coding it like this:
Private Sub ClaimNumber_DblClick(Cancel As Integer)
Dim rst As Recordset
Dim strSearchName As String
Dim strClaimNumber As String
Set rst = Me.RecordsetClone
strSearchName = Str(Me!ClaimNumber)
strClaimNumber = "[Forms]![Manual Claims System - MR Canada]!Form.ClaimNumber"
rst.Find "strClaimNumber = " & strSearchName
Me.Bookmark = rst.Bookmark
rst.Close
End Sub
Please advise.
Private Sub ClaimNumber_DblClick(Cancel As Integer)
Dim rst As Recordset
Dim strSearchName As String
Dim strClaimNumber As String
Set rst = Me.RecordsetClone
strSearchName = Str(Me!ClaimNumber)
strClaimNumber = "[Forms]![Manual Claims System - MR Canada]!Form.ClaimNumber"
rst.Find "strClaimNumber = " & strSearchName
Me.Bookmark = rst.Bookmark
rst.Close
End Sub
Please advise.