My Assistant
|
|
Feb 9 2008, 04:43 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 181 From: St Helens, UK |
The database is a lending library. I wish certain records to be archived to a duplicate table, so I can create history of items people have lent.
The database contains name, item lent, date lent and date returned. When a command button is pressed it will only archive records that have a return date in them. I have tried to use the 'After Update', to set a flag, and when the command button is pressed it checks if it has been set, but I just cant get it to work. I can do the other bits, such as Insert int otable. Any help would be appreciated. |
|
|
|
![]() |
Feb 10 2008, 11:50 AM
Post
#2
|
|
|
Access Wiki and Forums Moderator Posts: 48,633 From: SoCal, USA |
Chris,
Please follow Alan's advice on your table structure as it will make your life easier in the long run. But just to reemphasize what Alan said about not needing to store the archived records in another table, take a look at what I did with your db. I created two queries that simulates the two tables that you wanted to have. Then I modified the form to use the query instead of the table. Hope this further clarifies things for you. Good luck with your project.
Attached File(s)
|
|
|
|
chris1967 Archiving records Feb 9 2008, 04:43 PM
Alan_G Re: Archiving records Feb 9 2008, 04:50 PM
chris1967 Re: Archiving records Feb 9 2008, 04:57 PM
theDBguy Re: Archiving records Feb 9 2008, 05:02 PM
chris1967 Re: Archiving records Feb 9 2008, 05:07 PM
Alan_G Re: Archiving records Feb 9 2008, 05:07 PM
chris1967 Re: Archiving records Feb 9 2008, 05:13 PM
theDBguy Re: Archiving records Feb 9 2008, 05:13 PM
Alan_G Re: Archiving records Feb 9 2008, 05:23 PM
theDBguy Re: Archiving records Feb 9 2008, 07:27 PM
chris1967 Re: Archiving records Feb 10 2008, 05:09 AM
Alan_G Re: Archiving records Feb 10 2008, 07:23 AM
chris1967 Re: Archiving records Feb 11 2008, 02:26 AM
theDBguy Re: Archiving records Feb 11 2008, 11:11 AM![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th June 2013 - 03:04 PM |