2ippy
Newbie Here, Be gentle.
- Local time
- Today, 04:19
- Joined
- Nov 10, 2006
- Messages
- 78
I'm working on the search sample in the sample database section on forum.
I have got it looking as i want and working as i want bar 1 thing.
When i double click on the name i get from the search criteria in the list, it just goes to the form and doesn't show the customer i selected.
I have got it looking as i want and working as i want bar 1 thing.
Code:
Private Sub CustomerList_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Customers"
If Me.CustomerList <> "" Then
stLinkCriteria = "[CustomerID]=" & Me![CustomerList]
DoCmd.OpenForm stDocName, , , stLinkCriteria ', acReadOnly
Else
MsgBox ("You must select a person to view")
End If
End Sub
When i double click on the name i get from the search criteria in the list, it just goes to the form and doesn't show the customer i selected.