>Hi Naomi,
>I think my first problem is that I cannot make the buttons, see error messages in last message. The second problem would be not being able to remove them.
>Thanks,
Margaret,
Please show the piece of code which causes your error. The error is saying you the exact cause of the problem but we need to see the exact line of code causing it.
Your other method should use RemoveObject method as I said and not RemoveProperty. Rich made a good suggestion about using an array of buttons.
You can also have a collection class that will keep references to your objects and add/remove items as needed.
I actually have such collection class I use for my Search form. If you're interested in implementation details I may try to dig some code or may be send you the library.
Hope this helps.
If it's not broken, fix it until it is.
My Blog