Problem setting a control enabled = true/false

  • Thread starter Thread starter jj
  • Start date Start date
J

jj

Hi

I'm having the following sub:
Sub setEnabledControl(bgrp , bAnul, bPubl, bTidInt, bEftlev)

Me.Controls("CboxGrup").Enabled = bgrp
Me.Controls("CboxAnnul").Enabled = bAnul
Me.Controls("CboxPup").Enabled = bPubl
Me.Controls("CBoxTi").Enabled = bTidInt
Me.Controls("CboxJob").Enabled = bJob

End sub

And I call it from another sub by:

Call setEnabledControl (True, False, True, True, False)

My problem is that the controls always shows Enabled = true for all controls
!!!

Anyone knows what I do wrong?

Thanks
Jacob
 

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