Ok, but i have a problem with doing Rwresouce. See my code (it works OK but there is another problem):
Me.lst_Heating_Choice.RowSourceType = "Table/Query"
Me.lst_Heating_Choice.RowSource = "SELECT Heating_Choice_Index, Heating_Choice_Description FROM test WHERE Heating_Choice_Index=5
Me.lst_Heating_Choice.Requery
Since my List Box is setup to take upto 5 values and on the 5th value i have an condition written up for doing some other things as well.
When i run the above query, i am now getting only 1 value returned- so i cant do the check on the 5th value as when only 1 value is returned it is considered by List Box as the first value not the 5th one.
I think perhaps in this case, i would need to add NULLS in first 4 rows and then the 5th value will come to its proper place.. Is that right but how would i do that?
Thanks
Quote:
Originally Posted by Rabbit
Only if it's a Value List, then you can use Me.ListboxName.RemoveItem()
If it's Table/Query, you'll need to change the Row Source. They both have the same aesthetic effect.