Jeff said:
A few years, back, to satisfy my curiosity, I created a back-end (data
tables) with a query in it. I added a function in the back-end to
call that query.
Then I referenced the back-end from a front-end and called the
function. If I interpreted the results correctly, the back-end ran
the query and returned the results to the front-end. So I suppose
what you're asking is technically feasible.[snip]
You're suggesting that an MDB file "ran" a query? How exactly would that
work? What was the executable that actually did the processing?
I've done a similar thing for experimentation. Write a function that
returns a DAO recordset. The function can open a table or query or run
SQL directly, as long as its return value is a recordset. Its input
parameters could be the name of a query in the backend, or a valid SQL
string. Whatever...
The function exists in a module in the backend database.
Then in the frontend, create a reference to the backend. All the
public functions thus become available to the frontend. Dimension a
DAO recordset variable in the frontend, and set its value to the
return value from your function.
It works, but it's convoluted and may be more trouble than it is
worth. The "worth" is that (contrary to logic), the query performs
about 10 times faster than using conventional methods.
I would like some independent corroberation of the performance benefit
-- I saw the performance boost on several of the computers and
networks that I use, but haven't gone any further with it. If you care
to do that and respond back, I will be out of contact for about a
week. Perhaps I will hear back then...
**********************
(e-mail address removed)
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security