I've got a combo box that runs a query and returns a list of items, based on a value in a different combo box.
The query runs perfectly and the combo box list is filled with the correct selection of rows. However I need the combo box value to default to the last value in the list. Is there a way to code this?
I'm guessing it needs to be based around something like me.combobox.val ue = me.combobox.col umn(index,row)
However the number of values returned by the query varies, so I cannot use a hardcoded row location for it to always use. The column need to remain in ascending order, so I cannot reverse the order and just use .column(0,0).
I've also tried calculating the rowcount, assigning it to a variable, and using the variable as the row location. This however did not work.
Has anyone got any suggestions as to how I could achieve what I'm after?
Thanks.
Adam.
The query runs perfectly and the combo box list is filled with the correct selection of rows. However I need the combo box value to default to the last value in the list. Is there a way to code this?
I'm guessing it needs to be based around something like me.combobox.val ue = me.combobox.col umn(index,row)
However the number of values returned by the query varies, so I cannot use a hardcoded row location for it to always use. The column need to remain in ascending order, so I cannot reverse the order and just use .column(0,0).
I've also tried calculating the rowcount, assigning it to a variable, and using the variable as the row location. This however did not work.
Has anyone got any suggestions as to how I could achieve what I'm after?
Thanks.
Adam.
Comment