Hello all.
I have small problem.
WHAT I'VE GOT:
- I have main mdb app;
- I have cities.mdb in wich US cities are stored;
- Objects in another mdb are tables only and all tables in it have their owner (with password);
- From main app., I connect to this mdb via public & permanent connection (no linked tables, only coded connection) wich have user/pwd string (no matter which user is logged - coded connection is OK);
WHAT I WANT:
I want to set up recordsource of cities report to this external mdb.
WHAT I'M SUCK WITH:
I don't know how to set up Report.RecordSource to external mdb table?
WHAT I TRYED:
Since I successfully connect via public permanent link to this mdb like (it produces cities.ldb file (connection) and usual openRecordset commands works perfectly):
I tryed following Report.Recordsource 'connection string' and variations:
but no help from that.
SO MY Q WILL BE:
How to set report's record source to an external mdb that has ownership protected tables?
Any help is appriciated! Thanks!
I have small problem.
WHAT I'VE GOT:
- I have main mdb app;
- I have cities.mdb in wich US cities are stored;
- Objects in another mdb are tables only and all tables in it have their owner (with password);
- From main app., I connect to this mdb via public & permanent connection (no linked tables, only coded connection) wich have user/pwd string (no matter which user is logged - coded connection is OK);
WHAT I WANT:
I want to set up recordsource of cities report to this external mdb.
WHAT I'M SUCK WITH:
I don't know how to set up Report.RecordSource to external mdb table?
WHAT I TRYED:
Since I successfully connect via public permanent link to this mdb like (it produces cities.ldb file (connection) and usual openRecordset commands works perfectly):
Code:
Set workJET = CreateWorkspace("NewJetWorkspace", "owner", "owner_pwd", dbUseJet)
Set connDbCity = workJET.OpenDatabase(Me.connVarServer & "cities.mdb", False, False, "MS Access")
I tryed following Report.Recordsource 'connection string' and variations:
Code:
Report.RecordSource = connDbCity.Execute("SELECT...;")
but no help from that.
SO MY Q WILL BE:
How to set report's record source to an external mdb that has ownership protected tables?
Any help is appriciated! Thanks!