Optionbuttons in frame on form

L

Les Stout

Hi, i have a large frame "Comparisons" and within that frame i have 5
smaller frames with two opiton buttons in each frame, these smaller
frames are named from "2006" to "2011". I am trying to do an if
statement to check the date and if 2006 then make
frame2008.enabled=false, including the contents. In other words is it
possible to "connect" the option buttons to the frame ??

Could you please give me some suggestions/help.

thanks in advance..

Les Stout
 
G

Guest

if year(date) = 2006 then
frame2008.Enabled = False
end if

worked fine for me. The optionbuttons in 2008 are not grayed out, but they
are disabled nonetheless.
 
L

Les

Thanks Tom, that is my code also. My bad as i did not try it but just
saw that they didi not grey out.

best regards,

Les
 

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

Top