W
Wally Steadman
Greetings all,
I am killing myself on structure here
I started building a DB to track Computers/Devices.
There are multiple Sites and at each site there are multiple buildings and
multiple Vlans, but a machine can only belong to one Vlan, in One building
at one site. Where I am getting stuck is basic structure of table
On a site there are multiple Vlans and most are attached to a specific
building, but some can be attached to multiple buildings.
Example:
Site A
Vlan1 Bldg1 Machine A
Vlan 2 Bldg1 Machine B
Vlan20 Bldg 1 Machine C
Vlan6 Bldg2 MachineD
Vlan9 Bldg2 MachineE
Vlan20 Bldg2 MachineF
Vlan22 Bldg2 MachineG
Vlan12 Bldg3 MachineH
Vlan13 Bldg3 MachineI
Vlan22 Bldg3 MachineJ
Vlan 1 and 2 are specific to building 1
Then notice how Vlan 20 resides in Bldg1 and Bldg2
Vlan 6 and 9 are specific to bldg2
But Vlan 20 resides in bldg 1 and 2
Vlan 12 and 13 are specific to Bldg 3
But Vlan 22 resides in Bldg 2 and 3
My table Structure is as follows:
tblSite:
SiteID - Autonumber (PK)
SiteName - Text
tblVlan:
VlanID - Autonumber (PK)
VlanName - Text
SiteID - Number (FK)(Many in a 1-M with tblSite)
Subnet - Text
Gateway - Text
Group - Text
tblMachine:
MachineID - Autonumber (PK)
VlanID - Number (FK)(Many in a 1-M with tblVlan)
MachineName - Text
MachineType - Text (Will have a lookup table for different types of
machines)
MachineIP - Text (will only be the last octect of the IP address as the
first three are obtained from Subnet in VLAN table)
Building - Text
Where I am getting myself stuck is on those VLANs that reside in multiple
buildings. I could add the building field to the Vlan table but when I
wrote the Vlans that resided in multiple buildings I would have a blank
field so then if I did a search, for the Machine, I would not know what
building it was located in. That is why I went with putting the building as
a field in the Machine Table and then have the lookup only show the
buildings located at the current site. Not sure if there is a more
efficient way to do the structure or not. I thought this was going to be a
piece of cake and it probably is, but I am letting myself get confused, so
rather than stay confused I am bringing it here to ask advice on structure.
Any help would be appreciated.
TIA
Wally Steadman
ICQ: 11904383 (Please reference "Access Newgroup if ICQ'ing)
I am killing myself on structure here
I started building a DB to track Computers/Devices.
There are multiple Sites and at each site there are multiple buildings and
multiple Vlans, but a machine can only belong to one Vlan, in One building
at one site. Where I am getting stuck is basic structure of table
On a site there are multiple Vlans and most are attached to a specific
building, but some can be attached to multiple buildings.
Example:
Site A
Vlan1 Bldg1 Machine A
Vlan 2 Bldg1 Machine B
Vlan20 Bldg 1 Machine C
Vlan6 Bldg2 MachineD
Vlan9 Bldg2 MachineE
Vlan20 Bldg2 MachineF
Vlan22 Bldg2 MachineG
Vlan12 Bldg3 MachineH
Vlan13 Bldg3 MachineI
Vlan22 Bldg3 MachineJ
Vlan 1 and 2 are specific to building 1
Then notice how Vlan 20 resides in Bldg1 and Bldg2
Vlan 6 and 9 are specific to bldg2
But Vlan 20 resides in bldg 1 and 2
Vlan 12 and 13 are specific to Bldg 3
But Vlan 22 resides in Bldg 2 and 3
My table Structure is as follows:
tblSite:
SiteID - Autonumber (PK)
SiteName - Text
tblVlan:
VlanID - Autonumber (PK)
VlanName - Text
SiteID - Number (FK)(Many in a 1-M with tblSite)
Subnet - Text
Gateway - Text
Group - Text
tblMachine:
MachineID - Autonumber (PK)
VlanID - Number (FK)(Many in a 1-M with tblVlan)
MachineName - Text
MachineType - Text (Will have a lookup table for different types of
machines)
MachineIP - Text (will only be the last octect of the IP address as the
first three are obtained from Subnet in VLAN table)
Building - Text
Where I am getting myself stuck is on those VLANs that reside in multiple
buildings. I could add the building field to the Vlan table but when I
wrote the Vlans that resided in multiple buildings I would have a blank
field so then if I did a search, for the Machine, I would not know what
building it was located in. That is why I went with putting the building as
a field in the Machine Table and then have the lookup only show the
buildings located at the current site. Not sure if there is a more
efficient way to do the structure or not. I thought this was going to be a
piece of cake and it probably is, but I am letting myself get confused, so
rather than stay confused I am bringing it here to ask advice on structure.
Any help would be appreciated.
TIA
Wally Steadman
ICQ: 11904383 (Please reference "Access Newgroup if ICQ'ing)