Hi Ali,
The first table that I created is full (255 fields) and I had to create a
second table.
Whoa! You are not using proper database design techniques, if you have the
maximum number of fields possible. In fact, most well designed databases very
rarely have more than 25 to 30 fields, maximum, in any one table.
In Table A, there is a field name "TotalQtyRepaired"
You do not want to store the result of something that can be calculated. The
word "Total" in this field name stongly hints that it can be calculated from
other fields in this table. If this is true, then perform such a calculation
in a query, but don't attempt to store the result of your calculation in the
table. Here's why:
Suppose A + B + C = TotalQtyRepaired. You calculate this quantity and store
the value in the TotalQtyRepaired field. Later on, you (or someone else)
realizes that one or more of the independent values were entered incorrectly.
So they change the value stored in, say Field A. However, they forget to
update the total stored in the TotalQtyRepaired field. You now have
inconsistent data.
In Table B, you have these fields "Team1Repair", "Team2Repair", "Team3Repair"
This is known as a multi-field design, which is not a good thing. If you
later have to add (or remove) team(s), you will need to add (or remove) one
or more fields. You'll then need to modify any queies, forms, reports and
module code that makes use of these fields. You should not have fields that
store similar data in the table. Here is something that you should commit to
memory:
Fields are expensive; Records are cheap
In other words, your database design should be such that it can accomodate
any number of teams without the need to add or remove fields from a table.
This is done by storing the team information in a separate, related, child
table. At this point, the best thing that you could do is to stop working on
your database for the present time, and start reading all you can about
database normalization. Here is a link to get you started:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html#DatabaseDesign101
Make sure to read the first two articles, by database design expert Michael
Hernandez.
Good Luck,
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
Alimbilo said:
Thanks for your prompt reply.
I did not get any clear answers at all from others that the reason why I am
asking for your help.
The first table that I created is full (255 fields) and I had to create a
second table.
This is for a cellphone repair report.
In Table A, there is a field name "TotalQtyRepaired"
In Table B, you have these fields "Team1Repair", "Team2Repair", "Team3Repair"
I would like to have "TotalQtyRepaired" = Team1Repair + Team2Repair +
Team3Repair
I have tried to do TotalQtyRepaired = [Table B]!Team1Repair + [Table
B]!Team2Repair + [Table B]!Team3Repair
But I am getting this "#Name?" on the form view.
Any ideas?