Hi Jeff
You're probably right!
It all started because I needed to have 10 text boxes to describe 10 prices.
Sure. But there's nothing that says that those ten textboxes must be bound to
ten fields in one record - and there are many good reasons why they should NOT
be!
"Fields are expensive, records are cheap". Suppose you need an *eleventh and
twelfth* value someday? What do you do - redesign your table, rebuild all your
queries and all your forms? Ouch!
The prices and their description (text) are both variable and are used in a
billing program. So customer had so many "big boxes" @ 25p and so many
"little boxes" at 15p. etc. This is a warehouse storage system. Each customer
could have a different price for the same type of box!
One table with three (or probably more) fields: BoxID; CustomerID; Price. Each
customer can have as many different kinds of boxes as they need, and each box
can have a price that's specific to that customer; with no limit whatsoever to
the number of boxes or the number of customers.
That's no problem from
the database viewpoint and I've dealt with this. The box descriptions/type
are global over all customers in the database.
Of course - a Box table, primary key BoxID, related one to many to the prices
table.
When a customer sends in a new box for storing, the database is updated with
the box information, including identity,etc, and the type of box, either "big
box" or "little box"etc. Ideally a dropdown combo box would be the method to
select from a choice of 10 descriptions. This is the problem. How do I
populate the combobox? I need a table.
Ummm... sure. The Boxes table.
At this stage we don't know the description/type of all 10 boxes and so far
only 4 are named but the user is supposed to be able to add new types as they
arise.
Sure; use a Form based on the boxes table, allowing any number of new boxes to
be built.
Obviously I could do this at the programming level but that is a bit too
naive, although this might be my only answer!!! But if I could populate the
10 record/1 field table from the 1 record/10 field table I'd be a happy bunny!
Roger
The one record/ten field table *SHOULD SIMPLY NOT EXIST*.