>>Hello, I created a form non-visually using "CREATEOBJECT("Form")" and in my with/endwith statement defined the characteristics for a commandbutton. However, since I don't usually create forms this way, I'm not sure how to test for the commandbutton being clicked. any ideas? thanks
>
>I think you need to add a Click() method to the button. This can be done by adding a CommandButton based on a class of yours.
>
>HTH, Hilmar.
Wuld that be inserted within the with/endwith statement? Can you give an example? thanks.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."