473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

archiving

Hi Everyone

I was wondering if anyone has any great ideas on archiving.

I have a database, lets say a sales database. Future transactions are
really important, but past transactions are only important from time to
time.

Therefore, I would like to archive them so that they are not visible during
normal processing, just as and when required (e.g. statistics, the
occasional inquiry).

This I how I thought it would work:

1. I duplicate the table of sales.
2. I identify old sales
3. I copy them into the duplicated table
4. I delete them from the table that was duplicated.

Sound simple, but I already foresee a host of problems:
1. I delete the contact who I sold the goods to, now it does not link any
longer to the archived sales record
2. I always need just that one record that was archived
3. etc....

Ideally, what I would like to do is to keep the records in the same table,
but somehow hide them.

Now I know that you might say that I should use a query. But that would get
very confusing very quickly.

I can also tell you that the sales table is a linked table, could I perhaps
put some sort of selection statement in the link syntax????

As you can see, I am unsure on how to proceed. Is there anyone out there
with any good ideas????
Nov 13 '05 #1
3 1215
Leave them in the same tables.
Add a field such as this:
Name: IsDeleted
Type Yes/No
Indexes: Yes (Dupes ok)

Create queries to select the records where IsDeleted is False.
With the indexed field, there is no significant speed penalty, unless you
foresee millions of records in your table.

If you want to move the records anyway, this link shows how to do it safely:
Archive: Move records to another table
at:
http://allenbrowne.com/ser-37.html
As you mentioned, you must move the related records before you can move the
primary records. However, I suggest you DON'T move them at all. Flagging the
records is generally much more efficient and flexible.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"WindAndWaves" <ac****@ngaru.com> wrote in message
news:yx******************@news.xtra.co.nz...
Hi Everyone

I was wondering if anyone has any great ideas on archiving.

I have a database, lets say a sales database. Future transactions are
really important, but past transactions are only important from time to
time.

Therefore, I would like to archive them so that they are not visible during normal processing, just as and when required (e.g. statistics, the
occasional inquiry).

This I how I thought it would work:

1. I duplicate the table of sales.
2. I identify old sales
3. I copy them into the duplicated table
4. I delete them from the table that was duplicated.

Sound simple, but I already foresee a host of problems:
1. I delete the contact who I sold the goods to, now it does not link any
longer to the archived sales record
2. I always need just that one record that was archived
3. etc....

Ideally, what I would like to do is to keep the records in the same table,
but somehow hide them.

Now I know that you might say that I should use a query. But that would get very confusing very quickly.

I can also tell you that the sales table is a linked table, could I perhaps put some sort of selection statement in the link syntax????

As you can see, I am unsure on how to proceed. Is there anyone out there
with any good ideas????

Nov 13 '05 #2
> Therefore, I would like to archive them so that they are not visible during
normal processing, just as and when required (e.g. statistics, the
occasional inquiry). You need to elaborate on 'normal processing' here.

IMO the best approach is to leave all sales-records in the same table.
Access can handle lots of records if your tables are properly indexed.
Sound simple, but I already foresee a host of problems:
1. I delete the contact who I sold the goods to, now it does not link any
longer to the archived sales record If you really have to transfer records to a table let's say 'TabSalesArchive' then you must enforce
RI here also!
In that case you just can't delete the contact so your problem nr 1 is solved.
Ideally, what I would like to do is to keep the records in the same table,
but somehow hide them. Why would you want to 'hide' records ?
When searching only for records of let's say the last two years, this can be easily done with a
query on a field SalesDate I guess?
Now I know that you might say that I should use a query. But that would get
very confusing very quickly. ??
I can also tell you that the sales table is a linked table, could I perhaps
put some sort of selection statement in the link syntax????

No

--
Hope this helps
Arno R


Nov 13 '05 #3
thank you both arno and allen, this reinforces what i already thought may be
the best solution: keep them where they are and tick them with a "boxed"
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: SunSmile | last post by:
Hi, I am logging my exceptions to a word document(*.doc). After the size of word document is 5KB. I am archiving the word document to *.doc.1 Here when I am archiving the word document to...
4
by: Paul H | last post by:
Could some one give me some pointers on basic archiving techniques? I have developed several databases but never been faced with this issue. Here is the basic scenario.. Suppose I have the...
2
by: Knokmans | last post by:
Hi, first, this concerns db2 v8 and v9 on AIX and Linux/intel Until now we used a "user exit" when we want to archive logfiles. We changed the user exit executable a bit so we receive an email...
3
bvdet
by: bvdet | last post by:
Following is an example that may provide a solution to you: """ Function makeArchive is a wrapper for the Python class zipfile.ZipFile 'fileList' is a list of file names - full path each name...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.