This store has products from different manufacturers. A manufacturer has different products. One product can have many uses, or a single use let say pencil with different uses (coloring, carpenter, design). A single product can be produced by one or many manufacturers, we can have writing paper from 3 manufacturers.
I use oobase HSQL database engine
I have divided data into separate tables
table one named manufacturers
id_man bigint (autovalue/yes) format example "man"@
manufacturer text (varchar) entry requiered/yes
table two named products
id_prod bigint (autovalue/yes) format example "prd"@
product text (varchar) entry requiered/yes
engl_name text (varchar) entry requiered/yes
franc_name text (varchar) entry requiered/yes
id_man bigint (this should be the id_man from the first table, i don't know how to make this colect data from the first table field as in access)
table tree named uses
id_uses bigint (autovalue/yes) format example "uss"@
uses text (varchar) entry requiered/yes
id_prod bigint related with the id field from table 2
There will be more tables related to price, purchase date, EAN, and other store stock related databeses, but for the moment i need to understand what to do with these 3 tables.
What i want to do is:
- To create for the start a form that gives me the ability to write new records in each table
To mentain the linking, for the moment even when i creat a form using form wizard for a single table it does not display all the field when i navigate. I have created one for manufacturer table and it display only the manufacturer name and not display the appropriate manufacturer id in the id field of the form, remaining at the first ID even thow i can navigate to the end of file in the manufacturer field of the form.
When i write in a field of the form let say pencil that form to be able to display that record so I can move to the next field, and if there is none of such product, to record it in the appropriate table.
I would try a referential table in which to put just the id fields from two tables but i don't know how to link them with the real tables.
But for the moment I don't even know what i am searching to find the answer, that's why I am asking you to help me if you can.