Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 October 24th, 2006, 05:19 PM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multi-field entry design and reporting

I have a date field that must have its initial date kept forever, which I understand. There also needs to be a place to have multiple date entries (updates) for the same date field and each entry must be kept (either another column or two or making a sub-datasheet for multiple entries). Is there a better way to create an area for multiple entries?

Once dates are inputted (there will be some entires for the initial date and some entries for a second, etc. date), I need to run a report hat will show the most recent dates from either of the date inputs. How do I pull up the most recent dates?


 
Old October 25th, 2006, 06:39 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

   If you are programming for n dates, then you need to use a subtable. You are basically using a transaction table to capture dates that updates were made, is that correct?

   You can still create an initial date field in the main record by creating a date field, then setting its default value to Date() or Now() so that each time a record is created, it saves the date and time.

   Do you want to create subsequent dates programatically, or through some user interaction?

   As to the reporting issue, it depends on how you are storing the dates. What you might consider (and I use this) is to create a field in your date records called "IsCurrent" or similar, and make it a checkbox. Then whenever there is an update (using a form, of course,) you take the PK of the current record, and the FK to the main table, and whereever the FK of the main table and not the PK of the current record, set IsCurrent to False. Then when you run your reports, just use "True" criteria on the IsCurrent field. It's as easy as that! :D

Lemme know if you need more help.

mmcdonal
 
Old October 26th, 2006, 11:02 AM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi mmcdonal,

   YES,I’m trying to capture all updated dates and I'll be using a subtable to do this. I'll also use your idea of putting the initial date in the main form.

    Subsequent dates will be either hand inputted, or sometimes imported from SAP via an Excel spreadsheet. These will then go into the subtable via a subform.

    I don't understand your explanation of how you use IsCurrent. I'm still learning. Could you explain it another way?

Thanks for your help.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Layered Design jumbojs BOOK: Beginning C# 2005 Databases 1 October 19th, 2008 11:29 AM
Help: Multi User Order Entry Screen csjenkin1 VB Databases Basics 0 November 30th, 2007 04:29 PM
The best way to design a data entry web form cesemj ASP.NET 2.0 Basics 2 November 5th, 2007 02:44 PM
Many field reporting anukagni Access 2 September 27th, 2006 01:37 AM
how to enable local language entry in a field gumnam Beginning VB 6 1 December 10th, 2003 09:01 AM





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