Newbie SQL Dilemma
am 09.11.2007 00:16:01 von tbrogdonI have table Workstations with fields WorkstationID (autonum PK) and
WorkstationName (text). I also have table ProductOperation with
WorkstationID (long integer) as a foreign key. This is a 1 to many
relationship.
My goal is to have a combo box on a form based on the ProductOperation
table that shows the name of the Workstation (WorkstationName) NOT the
number for WorkstationID.
I have selected the ProductOperation table and used autoform on it. I
changed the default text box to combo box.
I went to the lookup properties of ProductOperation.WorkstationID and
changed the Row Source to SELECT Workstation.WorkstationID,
Workstation.WorkstationName FROM Workstation.
When I go back to the form the only the Workstation IDs show up in the
combo box.
So I go back to ProductOperation.WorkstationID and change the lookup
display control back to text box which eliminates the Row Source
identifier - I assume.
Then I go back and autoform ProductOperation table again; select the
WorkstationID text box; right click and change it to a combo box;
right clicka again and select properties and add the following SQL to
the Row SOurce field: SELECT Workstation.WorkstationID,
Workstation.WorkstationName FROM Workstation. This also just returns
the WorkstationIDs which mean nothing to anyone.
I need help.
Thanks,
Tim