You don't possibility want to store that data separated by commas. Virtually
every book, article or person will tell you to avoid this.
I mean, what happens when a person needs to add, or remove a facility for a
given development. All of a sudden, you need REAMS AND REAMS of code to keep
this new comma field in sync. Simply put, don't even consider going there.
You can write a mountain of code to scan this field when new faculties are
added (cause it might already be there), and a whole bunch more code to scan
this thing when you edit, change, or even delete a facility.
The solution is to build a nice form that lets you enter a new Development.
For the list of "facilities" that each development has, you simply build a
sub form based on your table called DevelopmentFacility. (use a combo box in
the sub form in continues mode). Your users will be able to easily see what
faculties each development has. Not only that, but it will TAKE ZERO CODE to
edit, manage and even add/delete facilities for a given development. (a sub
form in ms-access will mange this whole relationship for you with just the
UI....no code needed!). Build the sub form on the child table. In that form,
use the combo box wizard to lookup the id to the facilities table.
You can certainly grab the many facilities and create a comma separated list
at report time, but to even consider in any way shape or form to store that
data will be the worst decision you can make!
So, get your self a book on ms-access. You can also read my thoughts on
using a sub-form (which is what you need!).
http://www.attcanada.net/%7ekallal.m...000000005.html
> I would like to do this by creating a new table, with an additional column
> "Facilities" to hold the concatenation of facilities from the Facility
table
Nope! As mentoned, you don't have to do that. Use a sub-form with a combo
box.
For some reading on data normalizing:
ACC2002: Database Normalization Basics
http://support.microsoft.com/?id=283878
Database Normalization Tips by Luke Chung
http://www.fmsinc.com/tpapers/genacc...abasenorm.html
Data Normalization Fundamentals by Luke Chung
http://www.fmsinc.com/tpapers/datanorm/index.html
324613 - Support WebCast: Database Normalization Basics
http://support.microsoft.com/?id=324613
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.attcanada.net/~kallal.msn