Hello, I have a search field where the list box is populated off of a query, I want to be able to double click an item in the list box and have it bring up the details view of the record. I have the following code on the double click event based on a thread I found here, but I cannot seem to get it to work, it opens the details form but with a blank, new record.
Any help would be greatly appreciated, I assume it is something simple, but I have banged my head enough, time for help.
thanks,
KJ
Code:
Private Sub SearchResults_DblClick(Cancel As Integer)
DoCmd.OpenForm "Customer Details", , , "[CustomerID] = " & Me![SearchResults]
End Sub
Any help would be greatly appreciated, I assume it is something simple, but I have banged my head enough, time for help.
thanks,
KJ