Removing Controls at RunTime?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm trying to remove controls from my form at runtime. The controls have
already been added using something similar to the code below.

For TeamLoop = 1 To 3

Set TeamChkBox = Controls.Add("Forms.CheckBox.1", "chkTeam" & TeamLoop,
Visible)

Next TeamLoop

Does anyone know the syntax for removing these controls from my form?

Ta.

Neil
 
Neil,

Try this

Me.Controls.Remove "CheckBox1"

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top