Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

importing multiple fields into a single field

Featured Replies

I have an access database that I converted to FM12. The db is a flat file that contains about 1500 old classic cars and their ownership history. Each record consists of the car VIN (which is unique) and a list of owners from 1 to n, over the years, with each owner name residing in a different field, e.g. owner 1, owner 2, ....owner n.

 

I have created a relational db with three tables: cars, owners, and a join table called transactions. My question is how do I first establish the relationship in separate tables between each owner and the unique VIN, and then how do I "import" them such that each owner field will be placed in a field simply named "Owner".  i suspect this will require a loop for each record, but I am not yet able to figure that out until I can solve the first problem.

 

Thanks for any help.

 

wally buch

You actually don't need the join table Transactions in this case - due to the limitations of your source data, you can't tell if one owner has owned multiple cars, only that a car has had multiple owners, so it's a simple

 

Cars -< Owners

 

structure (You could surmise that owners with the same name are the same person, but you can't guarantee that...)

 

Import the Cars with the VIN as the key

 

Then do multiple imports  - one for each Owner n - to the Owners table and relate on VIN

 

I'd then create a proper key field, and populate the foreign key field in the Owners table and re-create the relationship on that, but it's not totally required. VIN is supposed to be unique (although across countries of manufacture, this may not be true)

  • Author

Unfortunately one owner can own many cars and even the same car more than once, so I need the intersection table. And there are perhaps 6000 transactions over the past 50 years so importing them one by one and manually linking them is a bit daunting. Is there a way to automate this?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.