J
JudithJubilee
Hello there,
I htink there is a simple answer to this but I can't
figure it out, so I'll explain in loads of detail!!
I'm having a bit of trouble with the Lookup Wizard. I
have cretaed my tables and relationships, eg.
tblEmp: EmpID - Primary key, AutoNumber
Name,Addr,Phone,etc.
DeptID - Number
tblDeptCode: DeptID: - Primary key, AutoNumber
DeptName - Text
DeptDescription - Memo
I would like the DeptID in tblEmps to be linked, using
Enforce Ref Int , to the DeptID in tblDeptCodes. I would
also like the field to be a dropdown list in tblEmps.
I can create the relationship: dragging from tblDeptCodes
to tblEmps.
I have then gone into the design of tblEmps and changed
the Data Type of DeptID to a Lookup Wizard. I have
followed the steps and finished creating it. It then
says "Table must be saved before relationships can be
created" So I choose "Yes".
When I look at the Relationships window I can see that
Access has added a table called tblDeptCodes_1. This has
a 1 - Many link with tblEmps. There is also a link from
tblEmps to tblDeptCodes with out 1 to Many indicators.
I don't understand what it is doing and whether I have to
create the Lookup before I create the link. Or if there
is a better way entirely??
Thankyou for reading and any help will be greatfully
appreciated.
Judith
I htink there is a simple answer to this but I can't
figure it out, so I'll explain in loads of detail!!
I'm having a bit of trouble with the Lookup Wizard. I
have cretaed my tables and relationships, eg.
tblEmp: EmpID - Primary key, AutoNumber
Name,Addr,Phone,etc.
DeptID - Number
tblDeptCode: DeptID: - Primary key, AutoNumber
DeptName - Text
DeptDescription - Memo
I would like the DeptID in tblEmps to be linked, using
Enforce Ref Int , to the DeptID in tblDeptCodes. I would
also like the field to be a dropdown list in tblEmps.
I can create the relationship: dragging from tblDeptCodes
to tblEmps.
I have then gone into the design of tblEmps and changed
the Data Type of DeptID to a Lookup Wizard. I have
followed the steps and finished creating it. It then
says "Table must be saved before relationships can be
created" So I choose "Yes".
When I look at the Relationships window I can see that
Access has added a table called tblDeptCodes_1. This has
a 1 - Many link with tblEmps. There is also a link from
tblEmps to tblDeptCodes with out 1 to Many indicators.
I don't understand what it is doing and whether I have to
create the Lookup before I create the link. Or if there
is a better way entirely??
Thankyou for reading and any help will be greatfully
appreciated.
Judith