But where are the form's that are used to specify the
report's criteria and call the reports? I was under the
impression that they were in a third mdb file.
Actually, it may not make any difference. The important
thing is that the reports know exactly where their data
resides. **IF** the report's mdb has linked tables to the
tables in the data mdb, then the report's mdb file can be
opened and the reports can be run manually from the db
window.
If I have understood what you are saying, after you set the
a Reference to the reports mdb, all you need to do is create
a public procedure in a standard module in the reports' mdb
file something like:
Public Sub OpenRemoteReport(ReportName As Variant, _
Optional View As AcView, _
Optional FilterName As Variant, _
Optional WhereCondition As Variant, _
Optional WindowMode As AcWindowMode, _
Optional OpenArgs As Variant)
DoCmd.OpenReport ReportName, View, FilterName, _
WhereCondition, WindowMode, OpenArgs
End Sub
Then your forms can use buttons or whatever with code that
calls the above procedure instead of using DoCmd.OpenReport
--
Marsh
MVP [MS Access]
All reports do use the same linked tables (500 tables and 1,500 queries).
All tables and queries reside in one mdb. All reports reside in another
mdb.
So, to answer your question the tables and reports do not reside in the
same
mdb - but there are only (2) mdb's involved.
"Marshall Barton" wrote