Had To Repost This - Need Help Urgently

Joseph Yeo

New member
Local time
Today, 03:41
Joined
Nov 12, 2001
Messages
8
I have the following codes which works perfectly:
Dim Db As Database
Dim Rs As Recordset
On Error GoTo ErrorControl
Set Db = CurrentDb
Set Rs = Db.OpenRecordset("Clients")
Rs.Index = "PersonID"
Rs.Seek "=", CLng(PersonID)
However, after splitting the database, I get an error message on this line:
Rs.Index = "PersonID"
"Operation is not supported for this type of object"

Any ideas why? Please help.
 
Have you tried using Rs.Index = Rs("PersonID") ?
 
You can't use Seek on a linked table. A much more efficient method is a parameter query.
 
You may also be able to use the command

rs.findfirst ([Field Name] = '" & rs![PersonID] & "'")
 

Users who are viewing this thread

Back
Top Bottom