Field List not letting me add existing field

J

Joan

In Access 2007, I need to add an existing field from another table to current
table opened in datasheet view. When I select the field that I want to add,
and attempt to drag and drop onto the datasheet, there is a circle with a
line thru it and the insertion point of the current table doesn't appear -
just this circle with line thru it as in "no can do" - this happens
regardless of what table or field I select. Category I need to use is Fields
in other tables. Followed directions outlined in the Access help and seems
like a simple action, but the Lookup Wizard never starts. New to Access, but
not new to Office.
 
G

Gina Whipp

Joan,

You would need to create a query based on the two (or more) tables you want
to be together and then draw upon the fields. You cannot just open a table
and open another table and try to add the fields that is not the way Access
works. By the sound of your question it sounds as if you are new to Access.
I suggest you review the following...

Jeff Conrad's resources page...
http://www.accessmvp.com/JConrad/accessjunkie/resources.html

The Access Web resources page...
http://www.mvps.org/access/resources/index.html

A free tutorial written by Crystal (MS Access MVP)... (especially the part
on Queries)
http://allenbrowne.com/casu-22.html

MVP Allen Browne's tutorials...
http://allenbrowne.com/links.html#Tutorials

Sample data models...
http://www.databasedev.co.uk/table-of-contents.html

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
J

Joan

Thanks Gina for the references - am a new Access user, but I was following
directions from the Access Help regarding this issue. It mentions "Add an
existing field from another table
If your database contains multiple tables, you can add a field from another
table in the database by using the Field List. When you work with a table in
Datasheet view, the Field List pane shows all of the other tables in your
database, grouped into two categories."
It goes on to explain how to do this, but the problem I have is when I
select the field in the Field List, instead of being able to drag and drop,
as the directions state, I get a circle with a line thru it.

Check out by going to Access Help and drilling down to Database Design, then
to Add a field to a table, then to Add an existing field from another table.
All I was trying to do was what the Access Help said is possible. I may not
have communicated what I was attempting to do. It will be easier to just add
the field to the table and complete the properties than writing a query.
Since the Field List sounds like it is a useful tool, I'm concerned that I'll
not be able to do anything with the fields when I design my forms, if I keep
getting that circle with the line thru it.

A appreciate your time in helping me,
Joan
 
M

MikeJohnB

You can in fact do as you are trying to do, Never felt the need to attemp to
do it. However, you can drag a field from an existing table into a table you
have open. (Didn't even know that a field list existed for tables.)

At least, the above is true for Access 2007. The field you drop from the
field list becomes a new relationship and then a look up field in the parent
table. (Or that is what happened here)

I have performed the operation here, I don't like this method of addidng a
field due to historic problems with look up fields in tables.

What version of Access are you using?
 
K

KenSheridan via AccessMonster.com

Joan:

I don't use Access 2007 myself, but my understanding is that this is really
just an extension of the Lookup Wizard which has long been present in earlier
versions, and has been constantly derided by experienced Access developers
for an equally long period. For reasons why see:

http://www.mvps.org/access/lookupfields.htm

While this might seem like a useful feature at first sight I would seriously
caution against its use. Tables can easily be designed via the normal design
interface without recourse to it, and will not suffer from the problems which
the above link details.

What the Lookup Wizard essentially does is create foreign key in a table on
the 'many' side of a one-to-many relationship which references the primary
key of a table on the 'one' side. This can easily be done via normal table
design. Say you have tables Customers and Orders for instance, the former
having an autonumber primary key CustomerID. You simply need to add a
CustomerID column (field) to the Orders table, of long integer number data
type in this case, not an autonumber, and create a relationship between the
tables on the CustomerID columns, enforcing referential integrity.

In the Orders table you will not see the customer name of course as you would
if the Lookup Wizard is used, but the numeric value of the CustomerID. This
is no disadvantage, however, as in any database application data should only
be viewed and/or edited via forms or reports, never in raw datasheet view.
In a form you can use a combo box bound to the CustomerID column in Orders to
show the customer name (the combo box wizard can set this up for you); in a
report you'd base the report on a query which joins Customers and Orders and
include the customer name (and any other customer details) from Customers in
the report along with the data from Orders.

Its encouraging to hear that its at the form stage that you are anticipating
this being a problem, as this shows that you are intending to design an
interface using forms rather than relying on the raw datasheets. What
appears in the raw datasheet of a table is immaterial, therefore, which is as
it should be.

The reason you might be having problems with this feature could be that you
are trying to add an inappropriate field to the table in the context of how
the tables are related. This does emphasise the need to have a good
understanding of how a relational database models the real world in terms of
tables, which represent 'entity types', columns, which represent attributes
of each entity type, and the relationships between the tables on one or more
attributes. You'll find the links to which Gina referred you invaluable in
this respect.

Ken Sheridan
Stafford, England
 
J

Joan

Thanks, Ken, for all the info. I think I was just being lazy and what was
described in Access Help seemed like an easy solution. I had two unrelated
tables (no relationship established between the tables) and had decided that
a field in one of the tables needed to be in the other table, so I thought I
could just drag & drop the field from the table in the Field List into the
table opened in the datasheet, then I was going to delete the field from the
table that I had taken it from (open table in the design view and delete the
field). I am just beginning to build a database and was actually using
tables and fields from Alison Balter's Mastering MS Office Access
2007Development book as a basis of a prototype mini db for learning purposes.
This experience has taught me that there apparently aren't any short cuts in
Access, especially if you are new to it.
Thanks for your time and thoughts.
joan
 
J

Joan

MikeJohn, thanks for your input. I am just beginning to build a database and
was actually using tables and fields from Alison Balter's Mastering MS Office
Access 2007Development book as a basis of a prototype mini db for learning
purposes. Obviously, I didn't understand the consequences of what I was
attempting to do, so it was good that I didn't succeed. Building a db from
scratch is very tedious and I, foolishly thought, I could take some short
cuts (without really knowing what I was doing, duh).
Thanks for your time.
Joan
 
J

John W. Vinson

This experience has taught me that there apparently aren't any short cuts in
Access

Oh, there are *plenty* of shortcuts...

unfortunately some of them lead you into the swamp or off the edge of a cliff!
<g>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top