Hi to all from Greece!
I am not a professional programmer but I ve managed to build a fairly good database for my work with Access 2007.
I m trying to embed the find as type code that MajP wrote in my database. I ve already use (with success) a similar approach from Allen Browne but it doesn't **filter** the combobox as MajP describes, so I want to replace it with MajP's.
Unfortunately I can't make it work.
:-(
Here's what I have done and if you please tell me what I am doing wrong....
(1). I created a class module named FindAsYouTypeCombo
(BTW I can't seem to be able to rename a module. I export/edit name/import to get the right name)
(2) The module has the code as in the FAQ without any modification
(3) In my form I paste the code
changed like this (I maybe do the mistake here)
I have my "search find as you type" text box (named ANAZHTHSH) (i.e. search in greek) but I don't see how can this be functional. I can't find a reference to it in the code.
(I tried to put it in the faytCombo.FilterFieldName = "ANAZHTHSH" with no luck. Either cases no matter what I am writing in the box (ANAZHTHSH) the combobox doesn't select or filters.
Can Anyone help me?
I am not a professional programmer but I ve managed to build a fairly good database for my work with Access 2007.
I m trying to embed the find as type code that MajP wrote in my database. I ve already use (with success) a similar approach from Allen Browne but it doesn't **filter** the combobox as MajP describes, so I want to replace it with MajP's.
Unfortunately I can't make it work.
:-(
Here's what I have done and if you please tell me what I am doing wrong....
(1). I created a class module named FindAsYouTypeCombo
(BTW I can't seem to be able to rename a module. I export/edit name/import to get the right name)
(2) The module has the code as in the FAQ without any modification
(3) In my form I paste the code
Code:
Public faytCombo As FindAsYouTypeCombo
Private Sub Form_Open(Cancel As Integer)
Set faytCombo = New FindAsYouTypeCombo
Set faytCombo.FilterComboBox = Me.YourComboBoxName
faytCombo.FilterFieldName = "strLastName"
End Sub
Code:
Private Sub Form_Open(Cancel As Integer)
Set faytCombo = New FindAsYouTypeCombo
Set faytCombo.FilterComboBox = Me.PSL
faytCombo.FilterFieldName = "Surname"
End Sub
(I tried to put it in the faytCombo.FilterFieldName = "ANAZHTHSH" with no luck. Either cases no matter what I am writing in the box (ANAZHTHSH) the combobox doesn't select or filters.
Can Anyone help me?