Hello
In previous design of my db as I describe like below I was running 3 append queries for inserting records in my tables after extracting data by queries (3 simple query) from 1 base table that comes from imported excel file in my database.
Now I have changed design of my tables to the new ones like below and I wanted to use auto number fields as primary and foreign key of tables. Now I do not know how I have to make my append queries from base table and inserting records to these 3 new tables. Specially for table 3 (new) because I do not know docid,tranid?
Please help.
Best regards.
I have 3 tables.
Table 1:
Doc no (Primary Key) text (50)
Title text (100)
Originator text
-------------------------------------------------
Table 2:
Trans no (Primary Key) text (15)
Date date
----------------------------------------------
Table 3:
Doc no (Foreign key) text (50)
Trans no (Foreign key) text (15)
Size text
Base table (import from excel file)
Doc no
Trans no
Title
Originator
Date
------------------------------------------
New design
Table 1 (new):
Doc id (Primary Key) auto number
Doc no text (50) required (yes) no duplicate
Title text (100)
Originator text
--------------------------------------------------------
Table 2 (new):
Transid (Primary Key) auto number
Trans no text (15) required (yes) no duplicate
Date date
------------------------------------------------------------
Table 3 (new):
Doc id (Foreign key) auto number required (yes)
Trans id (Foreign key) auto number required (yes)
Doc no text(50) required (yes)
Trans no text (15) required (yes)