Re: Previous Year

From: Tim Ferguson (FergusonTG_at_softhome.net)
Date: 03/18/05


Date: Fri, 18 Mar 2005 09:14:32 -0800


"=?Utf-8?B?c2N1YmE3OQ==?=" <scuba79@discussions.microsoft.com> wrote in
news:0FEF2BAC-4E58-4CF7-987B-D6B3F53993A2@microsoft.com:

> I have a client that is using Access 97, they want to be able to
> archive some records, however, I need to make sure that the records
> that they are archiving are not from the previous year and I need to
> code it so that it will be automatic for each year...

Archiving records is fine: the best way is to create a field called
"Archived" and set it to true for the records that have been archived.
Or, if you prefer, you could use a DateTime field and set it to the date
the thing was archived.

You can look at your historic records with a query like "WHERE
Archived=TRUE" or even "WHERE ArchiveDate IS NOT NULL"; and active
records with an opposite criterion. And when you want to combine old ones
and new ones, you don't have to mess about with all this nasty UNION ALL
stuff.

There is no reason to create extra tables when you don't need them; and
it's always asking for trouble to store data in table names.

HTH

Tim F



Relevant Pages

  • Re: Auto- or Manual- Archive from IMAP to the Archive Folders doesnt
    ... Thanks, that was the reason. ... Plus I found out that archiving doesn't work directly on IMAP ... settings" at individual folder level. ...
    (microsoft.public.outlook)
  • Re: Hiding originating IP when posting through CLOSED news servers
    ... XNA is there for a reason and it has two very valid ... >early 80's and once I found out about the archiving of posts I added XNA ... I see no reason to track this information here also. ...
    (comp.security.misc)
  • Re: Hiding originating IP when posting through CLOSED news servers
    ... XNA is there for a reason and it has two very valid ... early 80's and once I found out about the archiving of posts I added XNA ... with all of our personal information that's ... I see no reason to track this information here also. ...
    (comp.security.misc)
  • Re: Archive File Size
    ... Opening, moving, or otherwise manipulating a message, no matter how long ago it was created, indicates that the message contains information relevent to the present. ... Archiving by other dates via an automatic process couldn't help but include items recently referenced that, potentially, are of current interest. ... People would set it, forget it was set and then, months later wonder why items weren't being archived, just as they do now, only finding the reason would be much more problematic due to the number of items that would have to be examined individually. ...
    (microsoft.public.outlook)
  • Outlook archiving and importing quit working
    ... I have Microsoft Outlook and was archiving a bunch of ... folders manually and out of the blue for no reason, ... quit working. ...
    (microsoft.public.outlook)