Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2005, 12:42 PM
Authorized User
 
Join Date: Feb 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chacquard
Default

Thank you very much for your help. I did talk to my customer about archiving and performance, but he absolutely wanted me to build the fonction to archive "finished events". I will bring him the arguments you just gave me and see what he says about it.

About the "insert into", it seems to be working fine this morning, for some reason. I updated my tables with the production tables and when I copy a record, Access assigns it the next highest unused number, as needed.

Thanks again for your help, It is greatly appreciated.

Chantal

 
Old May 1st, 2005, 01:09 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 248
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ah yes. Customers! Can't live with them, can't earn a living without them.

One of the things we often talk about at PNWADG is educating customers. So many of them come from the point of view of an Excel "database". They simply don't understand what happens when you move away from that tool to something as powerful as an actual relational database.

Good luck convincing your customer. As a suggestion, you might put forth some extra effort to understand why the customer thinks they need the archiving. Let them know that you truly understand their wants/needs/issues/concerns. After all, they might have very valid reasons for archiving. If their arguments are based on old school database principles, help them understand the "reality" of what Access can do without archiving.

Point out that archiving MOVES things. And once something is archived, if it wasn't meant to be archived, it has to be MOVED back to be unarchived. You can provide views of the data so things don't need to be archived. Or you can spend your time writing and testing all of the archiving functionality.

Wrap it up with "archiving is unnecessary and ultimately leads to extra steps that users have to learn and remember to do, not to mention higher cost for your development time and likely more time to support the archiving functionality, especially when users forget to archive or archive something they didn't mean to archive." (That cost thing usually gets them.)
 
Old May 2nd, 2005, 09:58 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

One thing you can do to satisfy your customer, use AutoNumber, and not have gaps is to never delete a record, but rather give it a field that gets set to a value indicating that the record has a deleted status while still keeping it in the records that exist. This way the record itself fills in the gap, preventing Access from trying to “re-use” the ID number.

Additionally, you could carry two IDs, one generated through Access' Autonumbering, the other manipulated by the program/users/whatever. The Autonumber could be used to relate the records (letting Access do what it does), while carrying the manipulated number as a means of archiving, and so on. (Kind of a spaghetti approach.)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy whole structure of table in #temp table maulik77 SQL Server 2000 2 December 21st, 2006 02:42 AM
ADO record copy and add to table Freddyfred Access 2 February 16th, 2005 10:36 PM
copy and append records from table-A to table B bhunter Access 6 March 9th, 2004 02:02 PM
Add Records to Table with 1 to Many Relationship twsinc Access VBA 8 October 5th, 2003 05:35 AM
Update or add multiple table records rosenzl VB.NET 3 June 12th, 2003 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.