Invalid operation after database split fe/be (1 Viewer)

deanvilar

Registered User.
Local time
Today, 15:53
Joined
Mar 27, 2013
Messages
63
am already set to publish my MDB but I want to have a FE and BE application so that even 2 - 3 users can access them ....

I tried to split it manually, but no avail... got an error RUN-TIME ERROR '3219'; INVALID OPERATION and highlighted my recordset ... (attached image)

do I need to connect manually by code my tables to have it working? if so, can you please...please show me how... thanks
 

Attachments

  • SPLIT MDB AS FRONTEND BACKEND.jpg
    SPLIT MDB AS FRONTEND BACKEND.jpg
    92.1 KB · Views: 129

pr2-eugin

Super Moderator
Local time
Today, 23:53
Joined
Nov 30, 2011
Messages
8,494
Try
Code:
RST[COLOR=Red][B].Fields("[/B][COLOR=Blue]yourFieldName[/COLOR][B]")[/B][/COLOR]
 

deanvilar

Registered User.
Local time
Today, 15:53
Joined
Mar 27, 2013
Messages
63
still the same error sir Paul
 

Attachments

  • SPLIT MDB AS FRONTEND BACKEND.jpg
    SPLIT MDB AS FRONTEND BACKEND.jpg
    99.9 KB · Views: 83
Last edited:

pr2-eugin

Super Moderator
Local time
Today, 23:53
Joined
Nov 30, 2011
Messages
8,494
Unfortunately. Yes. You can use any of the following valid methods to access the fields in the Recordset..
Code:
RST[B][COLOR=Red].Fields("[/COLOR][/B]yourFieldName[B][COLOR=Red]")[/COLOR][/B]
[COLOR=SeaGreen]' Or[/COLOR]
RST[COLOR=Red][B].Fields([/B][/COLOR]2[COLOR=Red][B])[/B][/COLOR][COLOR=SeaGreen] ' the Field Number.. This requires you to know the appropriate field in the recordset.[/COLOR]
[COLOR=SeaGreen]' Or[/COLOR]
RST[COLOR=Red][B]![/B][/COLOR]yourFieldName
 

pr2-eugin

Super Moderator
Local time
Today, 23:53
Joined
Nov 30, 2011
Messages
8,494
Which line are you exactly getting the error?
 

spikepl

Eledittingent Beliped
Local time
Tomorrow, 00:53
Joined
Nov 3, 2010
Messages
6,142
With linked tables, replace dbOPenTable with dbOPenDynaset. Also, with DYnaSet, you cannot use .Seek but need to use .FindFirst. Look it up in the help file.

And as pr2-eugin asks: which line gives you error? You should always supply theat information - we are not mind readers.
 

deanvilar

Registered User.
Local time
Today, 15:53
Joined
Mar 27, 2013
Messages
63
Sir Paul am getting the error here:

Set RST = db.OpenRecordset("tblEmployees", dbOpenTable)
sir spikepl i'll try as well ... thank you
 
Last edited:

deanvilar

Registered User.
Local time
Today, 15:53
Joined
Mar 27, 2013
Messages
63
thank you sir paul, ill read this many thanks
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 23:53
Joined
Sep 12, 2006
Messages
15,662
sir spikepl error: OPERATION IS NOT SUPPORTED FOR THIS TYPE OF OBJECT.


as spike just said, with linked tables, you cannot set an index and use the seek method

you have to use findfirst (and other find variations), which is a slightly different syntax
 

deanvilar

Registered User.
Local time
Today, 15:53
Joined
Mar 27, 2013
Messages
63
thank you for the reply @gemma, now am reading what sir paul gave me ... and too bad i think i need to adjust everything =(
 

Users who are viewing this thread

Top Bottom