General information
Category:
Coding, syntax & commands
Hi,
I tested your code and I does set the control to nothing..BUT
Dim WithEvents DYN_cmdText As VB.TextBox
Dim ctl As Control
For Each ctl In frmQuoteRollover.Controls
If ctl.Name = "TL3" Then
debug.print ctl.Name + " IN THE CONTROL IF FIND!"
Set DYN_tdbGenericAccessories = Nothing
End If
Next
Set DYN_cmdText = Controls.Add("VB.TextBox", "TL3", SSFrame7)
The line above still generates an error. It seems to set DYN_cmdText to nothing.. but the above SET statement generates
the error: "Control TL3 already exists"
I also tried Set TL3 = Nothing.. that doesnt work either
Any ideas?
Thanks
Al
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only