M
maurizio
i have a badly designed table that has some fields with values that
would better fit into a separate table
e.g. i have something like this:
let's say that every record is a fruitseller, and that the table holds
info about him and about his stock of fruits.
I have fields:
-name
-address
-no. of apples
-no. of oranges
-no. of pineapples
-no. of coconuts
....
etc
I want to fix it, building two tables 1-n, with:
TABLE 1 (fruitsellers)
-fruitseller-id
-name
-address
TABLE 2 (stock)
-fruitseller-id
-type of fruit (e.g oranges, or pineapples, or...)
-number of fruits of that type
How can I pass data from the present table to the "turned over" double
table? it's easy to get the fruitseller table, but what about the other
one? I need to add a record in it with the appropriate fruitseller id
for every fruit field that has value >0 for that fruitseller in the
present table, but how do i do it?
(I can't write VB or AccessBasic...; I have Access 2000 or 2003. Can it
be done with a query?)
would better fit into a separate table
e.g. i have something like this:
let's say that every record is a fruitseller, and that the table holds
info about him and about his stock of fruits.
I have fields:
-name
-address
-no. of apples
-no. of oranges
-no. of pineapples
-no. of coconuts
....
etc
I want to fix it, building two tables 1-n, with:
TABLE 1 (fruitsellers)
-fruitseller-id
-name
-address
TABLE 2 (stock)
-fruitseller-id
-type of fruit (e.g oranges, or pineapples, or...)
-number of fruits of that type
How can I pass data from the present table to the "turned over" double
table? it's easy to get the fruitseller table, but what about the other
one? I need to add a record in it with the appropriate fruitseller id
for every fruit field that has value >0 for that fruitseller in the
present table, but how do i do it?
(I can't write VB or AccessBasic...; I have Access 2000 or 2003. Can it
be done with a query?)