![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
It just occurred to me today that I'm not sure how one imports data from an Excel spreadsheet if the data to be imported is in more than one table. Filemaker only seems to give you the option of selecting fields from one table when you match the spreadsheet fields to database fields. |
#3
| |||
| |||
|
|
It just occurred to me today that I'm not sure how one imports data from an Excel spreadsheet if the data to be imported is in more than one table. Filemaker only seems to give you the option of selecting fields from one table when you match the spreadsheet fields to database fields. |
#4
| |||
| |||
|
|
May I add to this question: how does one inport data from a multiple-table file (FM7) into the same (empty) file? Essentially the same question but the source is different. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Apologies if I'm misunderstanding, but I think my question may have been a bit different. My problem is not doing an import from an Excel file that has multiple worksheets, but rather importing data from an Excel file where the data from one sheet belongs in two separate FM tables. When doing the import, FM only allows you to import to the table used by the current layout and in any case doesn't seem to allow you to tell it that some fields are in a different table. Thanks in advance, as always! |
#7
| |||
| |||
|
|
Bill, I think I understand what you mean by "import into both whatever field you need to establish the relationship", but supposing the tables are associated by a unique ID match field. First, I do an import into table 1, which creates the new institutions in table 1 and includes fields from the spreadsheet that belong in table 1. Fine so far. But when I want to import into table 2, the unique ID isn't in the spreadsheet since it's created at the time of import into Table 1. The solution I came up with is this: after doing the import to table 1, create a layout that displays the institution and unique ID from table 1, then add the unique IDs as a new field to the import spreadsheet before doing the import into table 2. But this isn't a great solution, particularly if I'm actually dealing with 2 separate import files that have slightly different lists of institutions. Is there a better way? It just seems clumsy that you can't tell Filemaker to do this in one step somehow, or to do it in a less manual way. Thanks! |
#8
| |||
| |||
|
|
When you do the import into Table A, import ItemID from the spreadsheet into kpAItemID, along with the other fields you want in Table A. In the setup of the import, leave the checkbox "Perform auto-enter options while importing" unchecked. That way, the records will be imported without generating a new serial number for each one, ItemID from the spreadsheet will simply go into the kpAItemID field. |
|
I am curious why you want to split the data into two tables. You seem to end up with a one-to-one relationship between Table A and Table B. Normally, that is best handled by leaving the data all in one table. Relational arrangements are really best suited for one-to-many or many-to-many schemes. |
![]() |
| Thread Tools | |
| Display Modes | |
| |