F
freedomverse
I am trying to implement the instructions found on Allen Brown's website that
tell how to make a combo box that will navigate to a particular record in
your form. So I have my combo box but it gets it's information from a query
instead of directly from a form. This way I can view the names it retrieves
as "Last, First" I seem to be close but am getting an error every time. I
think it has something to do with how I am referancing my query. Here is my
code:
Private Sub Combo258_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.Combo258) Then
If Me.Dirty Then
Me.Dirty = False
End If
Set rs = Me.RecordsetClone
rs.FindFirst "[PeopleQuery].[Last&First] = " & Me.cboMoveTo
If rs.NoMatch Then
MsgBox "Not found: filtered?"
Else
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
tell how to make a combo box that will navigate to a particular record in
your form. So I have my combo box but it gets it's information from a query
instead of directly from a form. This way I can view the names it retrieves
as "Last, First" I seem to be close but am getting an error every time. I
think it has something to do with how I am referancing my query. Here is my
code:
Private Sub Combo258_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.Combo258) Then
If Me.Dirty Then
Me.Dirty = False
End If
Set rs = Me.RecordsetClone
rs.FindFirst "[PeopleQuery].[Last&First] = " & Me.cboMoveTo
If rs.NoMatch Then
MsgBox "Not found: filtered?"
Else
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub