Y
yiotaa
I want to an increment field based in a selection I make in combo box.
I have a combo named Country and I want each time I select a country the
increment to be continue for each country seperate.
I write in the after update event the following code:
Me.IncrementNo = DCount("[serno]", "[qry_villages]", "& me.Country") + 1
It seems that it works but in "& me.Country", it takes the value of
countryid and not the country name i choose in the combo box.
I have a combo named Country and I want each time I select a country the
increment to be continue for each country seperate.
I write in the after update event the following code:
Me.IncrementNo = DCount("[serno]", "[qry_villages]", "& me.Country") + 1
It seems that it works but in "& me.Country", it takes the value of
countryid and not the country name i choose in the combo box.