Arg81
Well-known member
When browsing through the data on the form, if the combo box has data to display it shows correctly.
When navigating to the next record, if there is no data to bind (I.E null) it will show the first value of the combobox items. This is then misleading to the user.
If the next record is null for the combobox field then the combobox is blank again. Browsing back a record will then show a blank combobox.
- The combobox binds to a lookup dataset, I have declared this as a global variable and it is filled when the app main form opens.
Then on the search form the combo box values (.dataSource, .displayMember etc etc) is set when the form loads.
I've played around with selectedValue but that doesn't fix it. what I need to try and get the following into code for my navigational buttons, or someone suggest a correct solution
if dataset1.tables("table1").column("SecondChoice").field is null then
me.combobox1.text = ""
Hopefully that makes sense and someone can give some advice
Cheers,
Luke
When navigating to the next record, if there is no data to bind (I.E null) it will show the first value of the combobox items. This is then misleading to the user.
If the next record is null for the combobox field then the combobox is blank again. Browsing back a record will then show a blank combobox.
- The combobox binds to a lookup dataset, I have declared this as a global variable and it is filled when the app main form opens.
Then on the search form the combo box values (.dataSource, .displayMember etc etc) is set when the form loads.
I've played around with selectedValue but that doesn't fix it. what I need to try and get the following into code for my navigational buttons, or someone suggest a correct solution
if dataset1.tables("table1").column("SecondChoice").field is null then
me.combobox1.text = ""
Hopefully that makes sense and someone can give some advice
Cheers,
Luke