I have two tables as follows:
CUSTOMER (CustomerId (PK), CustomerName)
TICKET (TicketId (PK), Amount, CustomerId (FK ref CUSTOMER))
In an EditForm, I would like to add/edit a record to the TICKET table, and I would like the customers to be limited to what's in the CUSTOMER table. I've managed this by;
1. Make CustomerId in the EditForm a drop down.
2. Set Items property of it to Distinct(CUSTOMER, CustomerId)
This works fine, and I can add or edit a record in the TICKET table. But as you can see this is not very user friendly since you have to remember which customer each customer id refers to, so instead of doing this, I'd like to offer CustomerName as drop down content, but when the SUBMIT button is hit, I'd like the form to add/edit TICKET table by using appropriate CustomerID. How can I achieve this?