Dim db As DAO.DATABASE, rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("TableNameGoesHere", dbOpenDynaset)
With rst
.FindFirst "[Last] = " & True
If Not .NoMatch Then
MsgBox "Record Was Found And Position is " _
& rst.AbsolutePosition + 1
End If
End With
Albano, try the DLookup function
dim location as Long
location = DLookup("your position","your table","your criteria"
John A. Gilman
gms@uslink.net
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.