Hi Ian,
and I will reiterate again what Jeff and Joseph said ...
think of it this way -- for every noun you can visualize, you will have
a table. Fields are like adjectives that describe that noun.
I suspect that you created other tables by copying your master table and
changing it... that means you copied the UNIQUE index too -- and it does
not apply to any other table (unless it truly is a 1:1 relationship,
which I doubt)
when you are in Table Design view, always turn on the Indexes window
(lightening bolt icon or View, Indexes from the menu) and keep it
showing -- move it to the right of the screen, but keep it on and make
sure the Indexes that Access creates are actually ones you want before
you save the table.
Once the Indexes window is showing, click on an Index in the Indexes
Window and note the properties in the lower pane ... change a Yes answer
to No by double-clicking on it (for instance, in the Unique property --
this means you can only have ONE of each value)
you have to keep tabs on the Indexes... Access creates indexes
automatially if "ID" or "Code" or "Num", etc is in the fieldname unless
you change the defaults -- and there is a limit to the number of indexes
you can have in a database -- so delete the ones you don't need.
Jeff asked that you devulge your table structure... may I second that?
Warm Regards,
Crystal
*
have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*
Jeff said:
Ian
I'll reiterate what Joseph mentioned...
If you are using "several tables all linked to a master client table
... due
to the amount of fields [required]", there is a very good chance your
table
structure is not well-normalized -- i.e., is more like a spreadsheet
than a
relational database.
If you are willing to pursue this further, please describe (some of)
the
fields you've decided to put in these other tables.
Regards
Jeff Boyce
Microsoft Office/Access MVP
Hi Jeff,
I am trying to put together a client database, I have created several
tables
all linked to a master client table, the master contains the unique
client
code and the client name. Each of the other tables are linked to the
client
master list with 1 to 1 relationships. I decided to go with several
tables
due to the amount of fields I would be requiring, it was an attempt to
keep
things simple.
I have a form that creates a new record within the client master, I
would
like this record to appear within each of the other tables so that
users
can
select any new records from their own individual forms to enter their
departmental data relating to that new client.
I hope this helps explain what I am trying to do.
Thanks
Ian.
:
Ian
It is somewhat unusual to need a 1-1 relationship. Could you
describe a
bit
more about what kinds of data you have stored in two (related)
tables?
By the way, if the "same primary key" in both tables is one you
generate/enter, skip the next portion ... otherwise, if you've used
an
Access Autonumber for both these primary keys, the two table are
definitely
NOT related. Access creates Autonumbers independently in each table.
Regards
Jeff Boyce
Microsoft Office/Access MVP
Hi,
In Access 2003, suppose I have 2 tables joined by a 1-1
relationship, I
have
a form where users can add a new record into one of these tables, is
there
a
way of cascading any new records into the other related table. Both
tables
share the same primary key.
Thanks