It sound like you are mixing some thing up here, bound it to the corresponding field in the table has nothing to do from where you're getting the data in the list.The issue with having the combo box bound is that the lookup table contains a 170K records so the is no way to display all the records since the combo box has a limit of 65K records
It sound like you are mixing some thing up here, bound it to the corresponding field in the table has nothing to do from where you're getting the data in the list.
Could you post your database with some sample data, zip it because you haven't post 10 post yet.
So make a copy of your file, then delete most of the records from the table, then zip that copy down and post i.
Linq ;0)>
You're using lookup fields at table level, which is not recommended.
Then you also set the first column in the combobox as hidden in the form, (Column.widths = 0 which contain the ID number from the table tblSnomedICD).
Then you further more using the ID number to do some search in the tblSnomedICD.[Snomed Name] which is a text field, (so nothing is found/return) for setting the cmbSurHisName.RowSource, so therefore the list in the combobox is empty.
You need to rethink the setup for the field SurHisName, the only think I can suggest is storing the text instead of the ID number, and ofcause get rid of the lookup field in the table.
Sorry, but I can not see that the above should be the reason for using lookup field type at table level.1st you are correct about not having a lookup field on a table but for my app it seemed to be appropriate because of the necessity to limit choices to items in the table. This table also contains 170K entries which why I have the function that I am describing below.
Actually the only value there is the table field "SurHisName" is the ID number, but because you've set the fieldtype to lookup field, you'll see the text from the table "tblSnomedICD"...
The issue is when that page loses focus or when you re-start the app the values disappear even though they are still in the table.
Sorry, but I can not see that the above should be the reason for using lookup field type at table level.
Actually the only value there is the table field "SurHisName" is the ID number, but because you've set the fieldtype to lookup field, you'll see the text from the table "tblSnomedICD".
You ask why Surgery/Procedure control doesn't show the text selected when the page loses focus or when you re-start the app.
The text disappear because the list in the combo box is empty, if you comment out the OnCurrent event in the form and set the rowsource to the table "tblSnomedICD" you'll see the selected text appear.
Therefore if you want to see the text, my suggestion was to store the text instead of the ID number.