Wrox Programmer Forums
|
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 November 9th, 2004, 01:24 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Ouch, you actually manually bump each defect for each product as you enter them? For example, it looks like you have this record:

Product Defect 1 Defect 2
ABC 0 0

Then if Defect 1 is reported, you do this to the same record:

Product Defect 1 Defect 2
ABC 1 0

Then if another Defect 1 is reported, you do this to the same record:

Product Defect 1 Defect 2
ABC 2 0

If this is correct, you are never going to get these defects reported by dates. Ever. Where are you storing dates on defects?

You should have a product look up table, a defect look up table, and then a Defect Reporting junction table. This last table would store your dates as you recorded defects, and you would have one record for each defect report. You could also add more data to the defect report this way.

This is basically what you need, if I understand your problem:

tblProduct
   PK
   ProductName

tblDefect
   PK
   DefectName

tblDefectReport
   PK
   FK tblProduct
   FK tblDefect
   ReportDate
   FK tblClient (or reporting entity)
   Comments







mmcdonal
 
Old November 9th, 2004, 09:47 PM
Authorized User
 
Join Date: Sep 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure what you read into this but it turns out it was a very simple fix.
Don........






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Date query Problem yikchin Access 3 November 22nd, 2005 05:39 PM
date range query killroy Access 2 August 17th, 2005 02:14 PM
Date Query [email protected] Classic ASP Databases 4 January 28th, 2004 07:27 PM
Date based query when date is nvarchar MichaelTJ SQL Language 4 January 12th, 2004 09:57 PM
Convert String Date to Date for a SQL Query tdaustin Classic ASP Basics 4 July 7th, 2003 06:01 PM





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