Error when creating control
	
	
		I get an error message when I try to run this...
 
Error num: 3799
 
Cant find label 'label134'
 
When I try to run it on a different form it works fine how come its not working on my form "Articulo". Ill be happy to supply with more info if needed.
 
[VBA] Sub NewControls() 
Dim ctlLabel As Control
Dim intLabelX As Integer, intLabelY As Integer
 
DoCmd.OpenForm "Articulo", acDesign
' Set positioning values for new controls.
intLabelX = 1000
intLabelY = 100
' Create child label control for text box.
Set ctlLabel = CreateControl(Forms!Articulo.Name, acLabel, , , "NewLabel", intLabelX, intLabelY)
' Restore form.
DoCmd.Restore
DoCmd.OpenForm "Articulo"
End Sub
[/VBA]