Hi - I am fairly certain this should be a common fairly straight forward task but I am having quite some confusion based on the results and options I have tried.
I have a customers table with a countryID foreign key in it. I have a form with the customer details which I can switch between using a customer selection combobox - all good so far.
I have a relationship between the customer table and the countries table. I have changed the customername to a combobox and dragged it to the form from the datasource.
What I would like is that as I select customers the country for that customer should show up in the combobox. IF I change the combobox value for country and save I want it to save the country ID in the customer table e.g. 1, 2,3 etc. which when displayed will use the country name from the country table. This is actually working.
The problem I am having is that when I change the country e.g. from Australia to USA then the dropdown no longer shows Australia and USA - it is now USA USA. This is only after I have saved the data. If I have not saved anything then the list is still Australia and USA.
I have tried using the properties data bound items and I have tried using code.
Looking at data bound items I thought I could set the following:
I thought this would show me the countries information in the drop down and then set the actual customers table countryid value as the selected value.
I am going in circles and missing something - please help!!!!!!!