I don't understand what you mean by "when I try and create a lookup
table...".
Your Region Table is the lookup table.
If you have created a key field in Regions that you want to use in
Sales instead of the text value of the region, then you can do this
with an update query as follows:
1. Create a RegionID field in sales that is the same data type as the
key field in Regions. I think you've already done this.
2. Create an update query that links the two tables on the Region text
fields.
3. In the Update row, in the column for the Region ID in the Sales
table, enter Regions.RegionID (or whatever you have for the table name
and key field name.)
4. After running the query and verifying the region assignments, you
can delete the region text field from the Sales table.
Jerry
Joker nospam wrote:
> I am converting an Excel workbook into an Access database. This first table
> I created was an import of all the original data call it Sales Table. I
> want a few of the columns to have a limited set of choices, so I created a
> table called Region Table. I created a relationship from the Region Table
> to the Region Field in the Sales table. However, when I try and create a
> lookup table, it deletes the records of gives me an error indicating I am
> putting in an unexpected value. If I go to the Sales Table and select from
> the pull down menu, then it accepts the value. Since I have thousands of
> lines of data, I don't want to go through each record and re-select the
> correct region. Is there a faster or easier way to make this work? Did I
> do something wrong on the import or creating the relationship?
> --
> Joker
> "...God hath made me to laugh, so that all that hear will laugh with me."
> Gen. 21:6
|