well, the idea is, i have a form in my app, it's a simple word processor
about the level of functionality of word pad, it's function is to allow users
to create in-app form letters on the fly by dragging and dropping tags onto
the letter that the letter will convert to info out of a table (kinda like
words mail merge, so why dont I use word and it's mail merge ability? users
dont know how to insert fields, how to connect to a database, how to create
queries for the info they need, and they really dont want to learn. Nor do
they want to call me everytime they need a new form letter. I presented them
with the idea of a simple but functional in-app word processor with drag and
drop ability and they liked it. said do it) so, anyhow, what happens is they
drag and drop tags from a listview on to a letter, some tags are straight
fields from a table like name address, some are basic functions like date,
some are a little more involved functions like all of a contractors insurance
policies formatted a certain way and associated with one tag or all a
contractors technicians, etc. when it comes to my code processing those
functions (when a user clicks the button to turn those tags into data for
print) the more complex ones have to open a recordset and compile a few
records into a string to be returned to the letter, actually, doing an
OpenRecordset is preferred to me cuz it's simple, open a table, filter it,
get what you need. all good. problem, backend is on a fairly slow network
connection so opening new recordsets takes a while, 5-10 seconds each time.
that adds up when code is processing a letter-full of tags. I discovered that
it is infinitely faster (like instant) to do a RecordSetClone of a main form
that is already open and get records out of it than it is to open a new
recordset that will have all of the same records that this other main form
will already have open anyway. so I'm thinking RecordSetClone and then filter
that clone for the specific ones that the form letter tags will need and i
discovered that ADODB.filter works and DAO.filter does not. the only reason
I'm doing it this way is because of speed. painfully slow OpenRecordset vs.
blazingly fast RecordSetClone. OpenRecordset takes about 15 seconds to
convert a letter-full of tags times 10-20 letters. I just wont be able to get
that type of time delay to fly with my people where as RecordsetClone takes
about 1 second per letter. I'm pretty sure I"m gonna have to do it this way.
thanks.