Hi all,
As discussed in my previous thread (http://www.access-programmers.co.uk/forums/showthread.php?p=1472956&posted=1#post1472956) I was trying to create a concatenated primary key. After some assistance a composite key was what I required.
I am trying to achieve the following - 4 tables which include Site Information, Software Information, Database Information and Credential Information. I can successfully create the appropriate relationships between Site Information, Software Information and Database Information. For instance there may be three pieces of software against a site to which two of them has one or more attached databases. Example:
SiteInformation
-----------------
SiteID - 1
SoftwareInformation
-----------------------
SiteID - 1
SoftwareName - Application 1
SiteID - 1
SoftwareName - Application 2
SiteID - 1
SoftwareName - Application 3
DatabaseInformation
-----------------------
SiteID - 1
DatabaseName - DB1
SoftwareName - Application 1
SiteID - 1
DatabaseName - DB2
SoftwareName - Application 1
SiteID - 1
DatabaseName - AppDB
SoftwareName - Application 2
Depending on the application the credentials may be stored in either the application or to one of the attached databases to that piece of software. How would I go about adding in the fourth table here for credentials? There will be no difference in terms of what is trying to be stored in this table (usernames) however I need to create a relationship for this Credentials table between SoftwareInformation and DatabaseInformation so that I can ascertain where the username relates to - database, or software.
I have tried to create this fourth table with relationships between both SoftwareInformation and DatabaseInformation with little success. When I populate the HeldAgainst field in CredentialInformation it gets upset that the supplied value doesn't exist in one of the two relationships (SoftwareInformation/DatabaseInformation).
I think I can see how this should work, two credential tables, one for DatabaseInformation and the other for SoftwareInformation. I just need some clarification if this is the correct way to go about it.
I've attached the database I've been working with to this thread.
As discussed in my previous thread (http://www.access-programmers.co.uk/forums/showthread.php?p=1472956&posted=1#post1472956) I was trying to create a concatenated primary key. After some assistance a composite key was what I required.
I am trying to achieve the following - 4 tables which include Site Information, Software Information, Database Information and Credential Information. I can successfully create the appropriate relationships between Site Information, Software Information and Database Information. For instance there may be three pieces of software against a site to which two of them has one or more attached databases. Example:
SiteInformation
-----------------
SiteID - 1
SoftwareInformation
-----------------------
SiteID - 1
SoftwareName - Application 1
SiteID - 1
SoftwareName - Application 2
SiteID - 1
SoftwareName - Application 3
DatabaseInformation
-----------------------
SiteID - 1
DatabaseName - DB1
SoftwareName - Application 1
SiteID - 1
DatabaseName - DB2
SoftwareName - Application 1
SiteID - 1
DatabaseName - AppDB
SoftwareName - Application 2
Depending on the application the credentials may be stored in either the application or to one of the attached databases to that piece of software. How would I go about adding in the fourth table here for credentials? There will be no difference in terms of what is trying to be stored in this table (usernames) however I need to create a relationship for this Credentials table between SoftwareInformation and DatabaseInformation so that I can ascertain where the username relates to - database, or software.
I have tried to create this fourth table with relationships between both SoftwareInformation and DatabaseInformation with little success. When I populate the HeldAgainst field in CredentialInformation it gets upset that the supplied value doesn't exist in one of the two relationships (SoftwareInformation/DatabaseInformation).
I think I can see how this should work, two credential tables, one for DatabaseInformation and the other for SoftwareInformation. I just need some clarification if this is the correct way to go about it.
I've attached the database I've been working with to this thread.