I am designing a database to track sewer maintenance. I need to give each specific structure within the system an intuitive ID tag. I wanted to use all integers instead of strings. First, the system is divided into 5 branches (ID #1,#2,#3,etc.). Then about every 6 feet there is a sewer main, I am thinking about using 1-01,1-02,1-03,1-04,..etc; the first 1 designates that the main is on the first branch and I used the zero because there could be up to 99 mains per branch (should I even use dashes??) Next, I need to identify the actual piece of line between each main. This is where my problem arises. For instance, in between mains 1-01 and 1-02 there is a piece of line which I could call 1-0102. However, in between mains 1-02 and 1-03 there is a line which I called 1-0203. In one table I have to put two lines for every main. So in the row with main 1-02 will be line 1-0102 AND line 1-0203. If I set up a seperate table trying to define each line seperately, then I have to put either two main ID's in one field or create two seperate fields (main ID 1, main ID 2) and then access will not let me relate both of them back to the Main IDs in the original table. How do I set up this/these table(s) and relationships so that as the system gets more and more complex I can still create things such as data access pages that will allow users to find specific structures and their related records? I know this may be too complex of a question to be answered here, but I really appreciate any input/advice. I've been racking my brain, searching helps sites, and using every resource possible but I can't come up with a viable solution. Thanks to anyone in advance for their help.
Most appreciatively,
Luke Hoekstra
Most appreciatively,
Luke Hoekstra