B
BetaMike
Apologies in advance, as I realise that this is not the right newsgroup for
design questions but I'm getting a very limited response elsewhere. I have
worked with Access before but I have more experience with Excel so I need to
convert my thinking drastically. I am trying to design a database that will
manage our customers, our services, the customer sites, our service
instructions, site billing amounts etc.
We provide three very different services to our customers, which I think
will need to store the relevant info in three seperate tables (1 table per
service?)
Each customer (billing address) can have just one site or several sites
(delivery addresses).
Each site can use 1, 2 or all 3 of our services.
tblCustomers
ContractNo (PK)
CustomerInfo
tblSites
ContractNo
SiteNo (PK)
SiteInfo
tblServices
ServiceID (PK)
ServiceInfo
tbllinkSitesServices
SiteNo (FK)
ServiceID (FK)
SitesServicesInfo
tblService1
Acode (PK)
tblService2
Mcode (PK)
tblService3
Scode (PK)
tblCustomers currently has a '1 to Many' relationship with tblSites so that
1 customer can have several sites.
tblSites has a 'Many to Many' relationship with tblServices with the help of
tbllinkSitesServices so that 1 site can have several services and each
service can be assigned to several sites.
The above relationships allow me to successfully add a Customer and assign
numerous Sites to it. Each site can be successfully assigned any or all of
the Services. However, if I have our three service instructions in seperate
tables - how do I link them to the sites? I'm guessing here but should
tblSites have 3 columns for the Acode, Mcode and Scode?
Thanks.
design questions but I'm getting a very limited response elsewhere. I have
worked with Access before but I have more experience with Excel so I need to
convert my thinking drastically. I am trying to design a database that will
manage our customers, our services, the customer sites, our service
instructions, site billing amounts etc.
We provide three very different services to our customers, which I think
will need to store the relevant info in three seperate tables (1 table per
service?)
Each customer (billing address) can have just one site or several sites
(delivery addresses).
Each site can use 1, 2 or all 3 of our services.
tblCustomers
ContractNo (PK)
CustomerInfo
tblSites
ContractNo
SiteNo (PK)
SiteInfo
tblServices
ServiceID (PK)
ServiceInfo
tbllinkSitesServices
SiteNo (FK)
ServiceID (FK)
SitesServicesInfo
tblService1
Acode (PK)
tblService2
Mcode (PK)
tblService3
Scode (PK)
tblCustomers currently has a '1 to Many' relationship with tblSites so that
1 customer can have several sites.
tblSites has a 'Many to Many' relationship with tblServices with the help of
tbllinkSitesServices so that 1 site can have several services and each
service can be assigned to several sites.
The above relationships allow me to successfully add a Customer and assign
numerous Sites to it. Each site can be successfully assigned any or all of
the Services. However, if I have our three service instructions in seperate
tables - how do I link them to the sites? I'm guessing here but should
tblSites have 3 columns for the Acode, Mcode and Scode?
Thanks.