How to upgrade our own customized software?

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-05-01
Hello guys,

I been wondering for quite sometime how to do it but failed to get answer...hopefully someone can help me out...here it goes...Example given at below...

Let say there are 1 table with 5 field (id,name and passport no) in my abc.mdb database as my backend and visual basic as my front end...after I use the program for quite some time and key in about 300 records into the abc.mdb database, suddenly I need a new requirement which is another 2 additional field which is (passport issue date and passport expiry date) as this 2 field is a critical field and user must input the date into this field....I can add that 2 field into front end and backend but how do i deal with old records where the field will left empty and whenever i refer to the old record there is always error shows empty field as that 2 field is important field that need to be filled...how to do/deal the upgrade version? I'm kinda confused here...thank you in advance...
Question by:thanabalan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Expert Comment

ID: 8018015
Assume the the two new fields have already been added to the Table, but the existing records now have NULL in those fields:

first, decide what dates you want to have in those existing records - clearly rthere MUST be dates in those fields, but the question you need to decide is --WHAT DATES.  After you come to a decision on this issue:

open the Back-end MDB

Create an Update query, to update the two date fields in the OLD records (that is for those records where these two fields current hold NULL - use the IsnUll function in the Criteria Row for these fields, in the Query Builder.)  set the Update to row to the Dates that you haver decided to add to the earlier records.



Accepted Solution

dmstrat earned 80 total points
ID: 8020321
Assuming the database has already been copied and your working on a new front-end exe as well.  I'm also assuming that you have a simple form for input when reviewing the records.

I would add error trapping in the front end code to handle the empty records to fire of an event to the user to fill in the proper dates.  The last thing you want is to have dates you've picked at random.  This could be used for later updates to your database as well.  Very handy if you plan on continuing to add more columns in this or other tables later on.

If you have reporting that these two new fields are being used on, you could do a replace for those "empty" fields (again with error trapping on required fields) that could tell the report to show "Needs Input"

Another option would be to add in a "database validation" process that would FORCE the user to input all the new record's fields, but that would be seriously unhappy for regular users who may not even have that new information available and just want to run reports.

Hopefully this helps.

Dan M.


Author Comment

ID: 8112223
Thank you guys espcially dmstrat for good in explanations...


Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question