A few things:
First, I think you received some non optimal advice here.
While it is a great idea to use a combo box to select a judge for example,
you DO NOT NEED TO WRITE one line of code to bring in those other fields.
Ms-access is what we call a relational database. This is simply a fancy term
that means ms-access can DISPLAY data from other tables in your form, but
you do NOT have to copy the data, or even have to write ONE LINE of code to
show the additional details.
So, for one, you don't need, nor want to "copy" that data from those other
tables. You can place a combo box on the form for the judge, and below that
combo box place a NICE little sub-form that will displays ALL OF the data
from the judge table. And, the beauty of this system is that you do NOT have
to write even one line of code to do this!!
I have some example screen shots and explain of how to do this here:
http://www.members.shaw.ca/AlbertKal...000000005.html
so, if possible, you do NOT want to copy the same data over. Even better, if
you use the relational abilities of ms-access, then you do NOT have to write
any code anyway!!
The following however is a major issue:
> Secondly, and this is the clincher, our firm already has about 250 merge
> documents in Word that we use this database to complete. So, while all the
> information being in one table is VERY redundant, I'm concerned about
> moving
> that data seperate tables just due to the amount of changes that would
> have
> to be made to all the documents we already have.
You worries are 100% right on!! There is a EASY solution to bringing the
many tables together. And, further, this can work with the word merge. Lets
assumed that we move out data for judge (and a bunch of your other sets of
data).
The solution here is then to simply build a query that joins back together
all of these tables. If you do this, then you will actually have a resulting
query that returns the one record, but that record will ALSO HAVE all of the
fields from those related tables. If the field names remain the same, then a
very large portion of your existing word documents will continue to
function.
However, your problem is migration. We don't have the EXISTING data in this
new format!! So, you can either leave all the existing data as is, and then
perhaps create a NEW form + tables for the new data entry system. However,
the problem of the word merge documents being for the old records, and
layout, or for the new records and layout remains?
In other words, if you try and fix/setup your data correctly, then those
merge documents will have to be changed.
as you can see, having a less then optimal design to start with is a
handicap in terms of forwarded movement.
So, our problem is not design a new systems. as mention, you can even create
and build this new system and NOT likely have to write any code to copy
data. However, we also would want to move out the EXISTING data to those
related tables. If we do this, then we only have one appcation for the old +
new system, and those word merge documents could be modified to work with
the new layout. However, to move/copy and write out your EXISTING data out
to those other relational tables will requite an ADVANCED level of
ms-access skills. You would have to write code to pull out the fields that
are all messed up in the main record out to individual related tables, and
while I done this MANY times, it requites an advanced process of ms-access
skills+coding.
Last, but not least, you could keep your existing data, and actually WRITE
code to pull out the fields from the combo box selection, and copy the data
into those main table fields. This is messy, and keeps your less then
optimal design alive. (and, to be fair, this is kind of what the other
poster is suggesting).
So, while I come down hard on saying you don't need to write any code here
if you have a good design, you could keep your existing design alive, and
write code to "copy" that data when you make a selection in a combo box.
1) so, write some code, and keep your existing designs
2) Or, new design, does not need code, (but, will requite advanced coding
skills to fix, and spread out the existing data to those new related
tables).
3) create a new design, and just keep the old system around for previous
records (this choice is least amount of code you will have to write).
Only you can really decide based on your skills (or willingness to learn) as
to which approach is going to be better for you...
I just wanted you to realize that several approaches are available here, and
the *better* approaches not only eliminate the need to copy data, but also
eliminate the need to write code. Unfortunately, in your case, you likely
will have to consider writing code to fix your existing data design.
At least there is this newsgroup full of people like me that love to talk
and offer advice!!!
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)