- 
	
	
		
		
			
				
				
				
					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]
 
 
 
 
				
				
				
					
						Last edited by geekgirlau; 10-03-2005 at 05:05 AM.
					
					
						Reason: Add VBA tags
					
				 
 
 
 
 
 
	
	
	
	
	
	
	
	
	
	
	
	
		
		
			
				 Posting Permissions
				Posting Permissions
			
			
				
	
		- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-  
Forum Rules