Hi guys,
Thanks to everyone who's replyed to this thread, your help is greatly appreciated. I have however, figured out the root of the problem. Before publishing the form all is well and the username can be read and wonderful things done with it. But after the form is published my work security steps in and disables ActiveX ...