bpcstaff Posted July 10, 2008 Posted July 10, 2008 Let [Tables] and "Fields" I have [Contacts] linked to [Companies] by "Company Name". On the Contacts layout, address fields are in a portal of fields from [Companies] and will auto-populate based on the entry in "Company Name". HOWEVER - a few of our companies have multiple addresses. Ideally, a user would select addresses from a drop-down menu that would auto-populate the remaining address fields, but that's where I get a bit lost. Anyone have a more elegant solution to this, or can someone point me in the right direction on how to do this? Thanks!
aldipalo Posted July 10, 2008 Posted July 10, 2008 (edited) First, I would suggest you link company and contact by companyID rather than company name. If the company gets acquired or decides to change its name in any way all your relationships will be broken. Same goes for all your primary relationships. I tend to use that for all my relationships unless I using the table as a filter. I am sure here we will get varying opinions. Next, set up an address table and link that to: CompanyTable::CompanyID -> AddressTable::fk_companyID ContactTable::ContactID -> AddressTable::fk_ContactID You can now add as many addresses to the comapny and contact as needed. You can use the same approach for Contact Info. OffPhone FaxPhone CellPhone HomePhone Emailaddress HTH Edited July 10, 2008 by Guest
bpcstaff Posted July 17, 2008 Author Posted July 17, 2008 Excuse my late reply, here, but thanks for the help!
amidyne Posted July 31, 2008 Posted July 31, 2008 Pardon my budding into the topic, but I'm actually having the same issue, I've set up the relationships the same way as you had suggested, but now I'm having trouble figuring out the fields on the contacts layout. What i want is for whomever is inputting the data to be able to select a company and then select from one of the company addresses. What I'm having trouble with is setting up the fields for the addresses to only display the proper related data. Any suggestions?
Recommended Posts
This topic is 6306 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now