![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm looking for help with a simple two-table database as follows: Table1: Individuals Table2: Companies The idea is that companies have a specific address, while individuals associated with a company have their own name/title/direct-phone etc. I want to have one table that lists companies and their addresses, and then I want to be able to assocaite one Company record with multiple Individual[s] records. Table1: Individuals - Has a FK_companyID:number field Table2: Companies - Has a PK_companyID:number;serial field I made a relationship between them. I enabled the setting such that records in Company can be created from Individuals. I added fields from Table2:Companies to a layout having fields from Table1:Individuals, and sure enough it works fine: If I type in any of the 'Companies' fields while editing an Individual(s) record, then a new record is added to Companies. -- The problem is this: When editing an Individual's record, I want a drop-down box to be available that lists all of the existing companies in the Companies table. If the user selects one of those companies, I want the ::companies fields to update live and show the associated data from the ::companies table (not copy them into the local table, just reference them). If the company record hasn't been entred yet, then I want the user to start typing in the information to create a new company record on the fly. I made a Lookup List defined by a companies::Company_Name and I set the field on the layout to use that, and it does give me a list of the companies::Company_NAme[s], but when I change the selection, it doesn't populate the other companies:: fields on the layout. I would expect that the drop-down list, when changed, would change the cursor of the companies:: table and resync the current layout's associated fields (coming from a delphi background) - but it doesnt' do that. Any suggestions? Thanks Woody |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |