Hello,
I am using Access 2002. I created a database where names are stored.
Now I want to add a drop down menu which contains the alphabet, means A, B, C... Y, Z. By selecting H for example, the form should jump to the first name in the database starting with H.
I tried the following code but there was no effect on the form. Nothing happened.
[fullname] is a field in the database as well as in the form.
Thank you for helping.
Tobias
I am using Access 2002. I created a database where names are stored.
Now I want to add a drop down menu which contains the alphabet, means A, B, C... Y, Z. By selecting H for example, the form should jump to the first name in the database starting with H.
I tried the following code but there was no effect on the form. Nothing happened.
[fullname] is a field in the database as well as in the form.
Thank you for helping.
Tobias
Code:
Private Sub gotoselect_Change()
Dim strCriteria As String
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
strCriteria = "[fullname] = '" & Me![gotoselect] & "'"
rst.FindFirst strCriteria
Me.Bookmark = rst.Bookmark
End Sub
Comment