This is something i have done many times before, but today for some reason it wont work.
I have a search form with a list box which shows the results.
i have this code on the double click event:
frmAllContactsSummary opens with a filter applied, however it opens at a new record, not the one where ContactID=SearchResults.
I have checked the bound column in the list box, which is 1 (which is the correct field for ContactID) and when I go to design view on frmAllContactsSummary the filter displays the correct ContactID number.
Can anyone suggest any other settings i may need to check to see why this may be happening.
Thanks
Kev
I have a search form with a list box which shows the results.
i have this code on the double click event:
Code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmAllContactsSummary"
stLinkCriteria = "[ContactID]=" & Me![SearchResults]
DoCmd.OpenForm stDocName, , , stLinkCriteria
frmAllContactsSummary opens with a filter applied, however it opens at a new record, not the one where ContactID=SearchResults.
I have checked the bound column in the list box, which is 1 (which is the correct field for ContactID) and when I go to design view on frmAllContactsSummary the filter displays the correct ContactID number.
Can anyone suggest any other settings i may need to check to see why this may be happening.
Thanks
Kev