Hi,
I have a number of Labels on a form, each one having an onclick event associated with them. The onclick event opens a different form in design view, deletes the elements, adds some new elements to it, saves the form and then opens the form in normal view to display to the user.
When i click on one of these labels, the second form is opened in design view. I can see the elements being deleted, then added and then the form closes. Next the form is opened in design view again and i can see the elements being deleted, added and then the form is closed. It is at this point that the form opens in normal view to display to the user.
Can anyone help. It seems that the onClick event is being fired twice. The form is definitely being opened twice because when i add a msgbox command to the onLoad event of the form being opened, it pops up twice.
There is nothing in the onLoad event of the second form that would cause this.
Any help would be greatly appreciated.
Thanks
I have a number of Labels on a form, each one having an onclick event associated with them. The onclick event opens a different form in design view, deletes the elements, adds some new elements to it, saves the form and then opens the form in normal view to display to the user.
When i click on one of these labels, the second form is opened in design view. I can see the elements being deleted, then added and then the form closes. Next the form is opened in design view again and i can see the elements being deleted, added and then the form is closed. It is at this point that the form opens in normal view to display to the user.
Can anyone help. It seems that the onClick event is being fired twice. The form is definitely being opened twice because when i add a msgbox command to the onLoad event of the form being opened, it pops up twice.
There is nothing in the onLoad event of the second form that would cause this.
Any help would be greatly appreciated.
Thanks