Maybe you could just copy it to your Windows clipboard, and paste it from
there. As for automating the process, I cannot think of a way offhand. I
expect it would be possible to use the form to set the query criteria. A
newsgroup search should provide you with some information if you use
something like this as a search string:
Access form enter report criteria
Help also has some information on the subject. Entering report criteria
means you are entering the criteria for the query on which the report is
based, so maybe you could get it to work for your situation. That's about
all I can suggest. I posted mainly to suggest you reconsider your choice to
archive records.
John said:
Thankyou. How can i use the individuals id though in the criteria of the
append and delete queries. The only way i know of is to have [enter id]
which
would mean the user has to type in the desired ID. But is there a way that
the curently displayed ID on the forms can be copied/read straight into
the
criteria of the append and delete queries?
BruceM said:
I suppose you could use the individual's ID as the query criteria just as
you have used a date range as the criteria for what you are already
doing,
but I have not tried it since there is, as Rick pointed out, almost no
need
to archive records in a properly designed database. What you have said
about archiving because you need to keep queries up-to-date does not make
sense. If you mark a record as inactive (by adding aYes/No field named
Inactive) it will not show up when you run a query in which the criteria
for
the Inactive field is Yes. Base your form or report on that query, and
you
have saved yourself a lot of work.