Well you have to "Move" to the record you want to pull.<br>
<br>
this is done by using a "bookmark"<br>
To move to another record you can use SEEK, if you have a Primary key in your table.<br>
If not you can use FINDFRIST to find the record then you get its' book mark and position to that record.<br>
<br>
syntax as shown:<br>
Sub SeekX()<br>
<br>
Dim dbsNorthwind As Database<br>
Dim rstProducts As Recordset<br>
Dim intFirst As Integer<br>
Dim intLast As Integer<br>
Dim strMessage As String<br>
Dim strSeek As String<br>
Dim varBookmark As Variant<br>
<br>
Set dbsNorthwind = OpenDatabase("Northwind.mdb"

<br>
' You must open a table-type Recordset to use an index, <br>
' and hence the Seek method.<br>
Set rstProducts = _<br>
dbsNorthwind.OpenRecordset("Products", dbOpenTable)<br>
<br>
With rstProducts<br>
' Set the index.<br>
.Index = "PrimaryKey"<br>
<br>
' Get the lowest and highest product IDs.<br>
.MoveLast<br>
intLast = !ProductID<br>
.MoveFirst<br>
intFirst = !ProductID<br>
<br>
Do While True<br>
' Display current record information and ask user <br>
' for ID number.<br>
strMessage = "Product ID: " & !ProductID & vbCr & _<br>
"Name: " & !ProductName & vbCr & vbCr & _<br>
"Enter a product ID between " & intFirst & _<br>
" and " & intLast & "."<br>
strSeek = InputBox(strMessage)<br>
<br>
If strSeek = "" Then Exit Do<br>
<br>
' Store current bookmark in case the Seek fails.<br>
varBookmark = .Bookmark<br>
<br>
.Seek "=", Val(strSeek)<br>
<br>
' Return to the current record if the Seek fails.<br>
If .NoMatch Then<br>
MsgBox "ID not found!"<br>
.Bookmark = varBookmark<br>
End If<br>
Loop<br>
<br>
.Close<br>
End With<br>
<br>
dbsNorthwind.Close<br>
<br>
End Sub<br>
<br>