Ann
Here's a couple of observations you may wish to consider before
proceeding...
If you are storing text holding the last two digits of a year, why? Why in
text (if you'll be 'doing math', and why just two? Access offers extensive
date/time functions, but you'd need to store an actual date. Is there a
chance your table's records could benefit from having an actual date (or
date + time)?
Second, folks use "archive" in differing ways. Are you proposing to remove
records from a table and put them somewhere else? If so, why?! If you have
a field on that table that is, say, [DateArchived], into which you store a
date (or date/time) value when the record is ready for 'archiving', then you
keep all your data in one table, but use queries to only show the records
that are not archived in your every day application. When it comes time to
look historically, look at them all.
JOPO (just one person's opinions)
--
Regards
Jeff Boyce
Microsoft Access MVP
Disclaimer: This author may have received products and services mentioned in
this post. Mention and/or description of a product or service herein does
not constitute endorsement thereof.
Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.
You can thank the FTC of the USA for making this disclaimer
possible/necessary.
Ann said:
I am using Access 2002 and have a two character text field [txtDRSYear]
that
holds the last to characters of the current year, (example 09). I want to
retrieve all the records for the current year minus one so I can archive
all
the 2009 data in 2010 but I can't figure out how to do that using Date().
Thanks in advance.
.