Xenix
Registered User.
- Local time
- Today, 15:43
- Joined
- Oct 8, 2001
- Messages
- 124
Hello,
I have a problem with a combo box, it just looks up contact names, but I can't get it to filter out only the contacts that relate to the customer code.
Private Sub Combo12_AfterUpdate()
'Find the record that matches the control.
Dim rs As Object
'stLinkCriteria = "
I have a problem with a combo box, it just looks up contact names, but I can't get it to filter out only the contacts that relate to the customer code.
Private Sub Combo12_AfterUpdate()
'Find the record that matches the control.
Dim rs As Object
'stLinkCriteria = "
Code:
=" & "'" & Me![CODE] & "'"
'DoCmd.OpenForm stDocName, , , stLinkCriteria
'DoCmd.ApplyFilter , Code = Me![Code]
Set rs = Me.Recordset.Clone
rs.FindFirst "[Contact] = '" & Me![Combo12] & "'"
Me.Bookmark = rs.Bookmark
End Sub
can anyone help me? above is a list of all the code I have tried [img]http://www.access-programmers.co.uk/ubb/frown.gif[/img]
thank you
Mike