A
Ann Scharpf
I am a little confused about the perils of lookup fields vs. the need to
normalize data. I have two tables in my database. Pertinent fields are:
ApproversList
ApproverID (Autonum key)
ApproverName
AGoalEmployees
Approver (List Box field; shows both ID & name. STORES ApproverID)
I thought this was preferable to typing in Approver's name for every
employee. I just select the approver's number (1 - 14) without any risk of
typos causing data mismatches. I am seeing contradictory advice in the
newsgroups.
This one says it is ok to use lookups as long as you don't use a wizard and
control the field yourself:
http://www.microsoft.com/office/com...8ada&catlist=&dglist=&ptlist=&exp=&sloc=en-us
But several posts include links to this rule to NEVER use lookups in tables:
http://www.mvps.org/access/lookupfields.htm.
Can someone please clarify for me if this is an ok thing to do?
My next question is about data compatibility. When I try to do a query to
link the approver table and the employee table (so I can show the approver's
NAME) I get a data mismatch. The ApproverID is number and I thought that
when I created a lookup field to use it, the data type would automatically be
set up to match. However the field in the employee table is TEXT. I tried
to create an Approver2 field to repeat the process and see where I'd messed
up, but the lookup dialog box does not seem to allow me to create the field
as numeric. Is there a way around this? I guess I could remove the Autonum
ID field in the Approver table and create an indexed field that does not
allow duplicates and create the values myself but it seems like there should
be a more direct method.
Thanks for any advice you can give me on these points.
normalize data. I have two tables in my database. Pertinent fields are:
ApproversList
ApproverID (Autonum key)
ApproverName
AGoalEmployees
Approver (List Box field; shows both ID & name. STORES ApproverID)
I thought this was preferable to typing in Approver's name for every
employee. I just select the approver's number (1 - 14) without any risk of
typos causing data mismatches. I am seeing contradictory advice in the
newsgroups.
This one says it is ok to use lookups as long as you don't use a wizard and
control the field yourself:
http://www.microsoft.com/office/com...8ada&catlist=&dglist=&ptlist=&exp=&sloc=en-us
But several posts include links to this rule to NEVER use lookups in tables:
http://www.mvps.org/access/lookupfields.htm.
Can someone please clarify for me if this is an ok thing to do?
My next question is about data compatibility. When I try to do a query to
link the approver table and the employee table (so I can show the approver's
NAME) I get a data mismatch. The ApproverID is number and I thought that
when I created a lookup field to use it, the data type would automatically be
set up to match. However the field in the employee table is TEXT. I tried
to create an Approver2 field to repeat the process and see where I'd messed
up, but the lookup dialog box does not seem to allow me to create the field
as numeric. Is there a way around this? I guess I could remove the Autonum
ID field in the Approver table and create an indexed field that does not
allow duplicates and create the values myself but it seems like there should
be a more direct method.
Thanks for any advice you can give me on these points.