F
Frank Situmorang
Hello,
I use the following Allen Brown's tip to find the record and it works. But
instead of scrolling using the arrow bar, to speed up finding the record. Is
there any way to make it auto expand on the Household name?. My combo's row
source is AddressID, Householdname, and adddress 1 and Post Code. I want it
as soon as we type the household name it will be autoexpand.
The following is the VBA as per Allen Brown's tip:
Private Sub cboMoveTo_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.cboMoveTo) Then
'Save before move.
If Me.Dirty Then
Me.Dirty = False
End If
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[AddresID] = """ & Me.cboMoveTo & """"
If rs.NoMatch Then
MsgBox "Not found: filtered?"
Else
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
Yhanks for any help.
Frank
I use the following Allen Brown's tip to find the record and it works. But
instead of scrolling using the arrow bar, to speed up finding the record. Is
there any way to make it auto expand on the Household name?. My combo's row
source is AddressID, Householdname, and adddress 1 and Post Code. I want it
as soon as we type the household name it will be autoexpand.
The following is the VBA as per Allen Brown's tip:
Private Sub cboMoveTo_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.cboMoveTo) Then
'Save before move.
If Me.Dirty Then
Me.Dirty = False
End If
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[AddresID] = """ & Me.cboMoveTo & """"
If rs.NoMatch Then
MsgBox "Not found: filtered?"
Else
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
Yhanks for any help.
Frank