Hi
It sounds like you have done the difficult bit, to write the function to 'get next value'. If you want to display this in the combo box you can use the After_Update event ;-
- Private Sub Combo0_AfterUpdate()
-
Me.Combo0 = getNextValue(Me.Combo0)
-
End Sub
It's as simple as that so long as the FIRST column in the combo is VISIBLE and the property 'Limit to List' (on the Data tab) is set to 'No'
I hope I have understood correctly
BTW, I trust you know where you are going with this data structure? You are seemingly generating a 'compound' field which
BREAKS THE FIRST RULE of database design and normalization.
By keeping your '1234' in one column (field) it can remain numeric, so faster to index and search, and the '4'th occurance can also be stored as a number in an adjacent column. etc, etc. If you want to display '1234-4' you can.
Ofcourse, I've no idea whether this is what you are already doing !
S7