OpenRecordset on backend tables Help!

Y

yves

I've just splitted in front and back end (access2000)
TableClient is now a linked table "C:\data\Backend.mdb"
and the following code gives the error Run-time error '3219': Invalid
operation

Dim dbs As Database
Set dbs = CurrentDb
Dim rst As Recordset
Set rst = dbs.OpenRecordset("TableClient", dbOpenTable)

can anybody correct it or tell me if I need to change the database or method
or dbengine or whatever workspace , connection

Thanks and happy new year everyone
Yves
 
T

Ted

I'm not sure that you can use the dbOpenTable type for a
linked table. You may want to try dbOpenDynaset.
 
D

Dirk Goldgar

Ted said:
I'm not sure that you can use the dbOpenTable type for a
linked table. You may want to try dbOpenDynaset.

Quite right. Note that you can't use the Seek method on a dynaset, so
if you were opening as a table-type recordset specifically so that you
could use that method, you'll have revise your code.
 
Y

yves

Many thanks both of you!
everything up and running now
Dirk, I don't quite understand all that you said, but I'll do what it takes
to understand

All the best!

Yves
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top