Table Design

molsen

Registered User.
Local time
Today, 15:08
Joined
Sep 13, 2012
Messages
50
First of all I would like to thank all of those who have guided me along the way. This is the best site I have ever had the privilege of being a member of. My learning curve is still on the upward!

I would, once again, be grateful for some advice.

I am at the planning stage of designing a database (Access 2003) to service a particular workflow, for the tracking and eventual invoice of jobs carried out by tree surgeons, who cut vegetation from around a power grid. I would be grateful, once again, if someone could have a quick look at my initial design. Attached is a jpeg I have produced using Visio.

The power grid is split into 'Spans', essentially a line of poles connected to a substation. Each span is designated with a ‘Circuit Name’. Each circuit is contained within a Managed Unit (MU), which tells you the area/location of the underlying circuits and spans.

Sample Data would be:

Phase: 1 (relates to the phase of planned maintenance)
MU: 1299
Circuit Name: Camborne to Redruth
Span From: ZBU20
Span To: ZBU21

A surveyor is sent out to judge what needs to be done, ahead of any cutting. The surveying of each span attracts a fixed charge, and an invoice is generated according to the number of spans surveyed.

One particular work order may contain many spans. One particular work order would eventually result in a cutting invoice containing many spans at variable cost, separate to the survey invoice, but still of course relating to that work order.

I need to list each separate span from/to under one work order, to produce the survey invoice, and then to list each cutting job, to produce the cutting invoice. I am slightly confused at how to separate the tables for Surveying & Cutting, or even if I need to.

Each Individual work order will attract a single invoice for the sum of surveying and one single invoice for the sum of cutting.

In some instances, a single work order will be ‘Part-Cut’, but we would still invoice those spans that have been cut, leaving further invoicing to be carried out as and when the cutting progresses and is eventually ‘Completed’.
 

Attachments

  • WPD Resilience Job Tracking & Invoice Production.jpg
    WPD Resilience Job Tracking & Invoice Production.jpg
    51 KB · Views: 123
I have split the two invoicing tables. Do you think this is better than the first?
 

Attachments

  • WPD Resilience Job Tracking & Invoice Production Refinement 1.jpg
    WPD Resilience Job Tracking & Invoice Production Refinement 1.jpg
    53.9 KB · Views: 122
I was trying to sort out your tables. You have detailed attributes but no table names in your diagram.

I tried to create a high level model based on your description. This was more of an effort to get the tables and relationships.

I am attaching what I did, but it may be way off your particular business. Hopefully it may be of some value to you -- even if only to point out how what I've done doesn't match the way you do things.
 

Attachments

  • TreeSurveyAndCutting.jpg
    TreeSurveyAndCutting.jpg
    46.4 KB · Views: 112
Thanks Jdraw. It does look different to mine, but thats probably because mine is way off the mark. I'll work on it & let you know.
 
Hi Again

After a few hours sweating, I think I have the structure complete, but that's my own opinion! I now have to incorporate these tables into one input form.

Is the best way of doing this via query/form/subforms, or is there a better way of doing it? It would seem I would have a fair number of subforms. Do I need query's at all? Its not easy/possible to create queries that are inputtable?

Muchos Grasias for your help.
 

Attachments

  • Table Structure.jpg
    Table Structure.jpg
    87.3 KB · Views: 119

Users who are viewing this thread

Back
Top Bottom