I have used the great code from MajP FAYT on a few forms and some work perfectly and a few have an issue. I read the post Populating Combobox with a lot of data and the link in there.
The issues I am experiencing are
The combobox has an after update event to find the record chosen and display on the form
Since I am trying to use the feature for FAYT on multi columns this is what I set up.
Top of code window of the Form
The issues I am experiencing are
- When I refresh the underlying table (I click a button on my form and it pulls in the data into a table from Outlook) , it shows #Deleted. I saw in the Class Module code
Perhaps that is what I need to do and if so, how do I?NOTE: IN ORDER TO REQUERY MUST USE THE METHOD OF THIS CLASS
- Probably from habit, I sometimes hit the tab key as I have done when using a non-FAYT combo. If tab key is pressed, it generates an error (null value since nothing was actually selected) and then instead of seeing all the records, only one record displays and am unable to select another item in the combo
- Under both of these scenarios, only way to restore the list of items in the combo is to either go to design view and back to form view or close the form completely and then reopen the form
Code:
SELECT [qryOutlook].[SentFrom], [qryOutlook].[DateSent], [qryOutlook].[subject], qryOutlook.ID FROM [qryOutlook] ORDER BY 1,3,2;
The combobox has an after update event to find the record chosen and display on the form
Code:
Private Sub cboGotoMessage_AfterUpdate()
Me.RecordsetClone.FindFirst "[DateSent] = #" & Me.cboGotoMessage.Column(1) & "#"
Me.Bookmark = Me.RecordsetClone.Bookmark
Me.cboGotoMessage = ""
End Sub
Since I am trying to use the feature for FAYT on multi columns this is what I set up.
Top of code window of the Form
Code:
Option Compare Database
Option Explicit
Public FAYTGotoMessage As New FindAsYouTypeCombo
Code:
Private Sub Form_Load()
'Enhanced combo to use Find As You Type
FAYTGotoMessage.InitalizeFilterCombo Me.cboGotoMessage, , anywhereinstring, True, False
End Sub