Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 24th, 2006, 05:19 PM
Registered User
 
Join Date: Sep 2006
Location: , , .
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?


Reply With Quote
  #2 (permalink)  
Old October 25th, 2006, 06:39 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 26th, 2006, 11:02 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:27 AM.


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