Thanks for your answer Paul.
Actually I have a form which has text fields, radio buttons and listboxes. At the end of the form I have a Print button which first checks the emtpy fields.
Everything is working great with the textfields (using the code listed above) but when trying to get checked the listbox value I can't do it using that code.
I want to know the best method in checking if a listbox has at least 1 element in it.
Same for the radio buttons - how can I check that at least one radio button has been selected.
Thanks!