By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,985 Members | 2,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,985 IT Pros & Developers. It's quick & easy.

Select a field in a form blanks(Greys) out and restricts other cells.

P: 3
Hello

I have created a from that has a few combo boxes that are linked to a sub form,

If i select a combo box to find a record i want to grey out and restrict access to the other combo boxes.

Please help

Thanks

Imran
Jan 13 '10 #1
Share this Question
Share on Google+
1 Reply


nico5038
Expert 2.5K+
P: 3,072
Just add to the code of each combo's afterupdate event:
Expand|Select|Wrap|Line Numbers
  1. Combo1:
  2. me.combo1.enabled = true
  3. me.combo2.enabled = false
  4. me.combo3.enabled = false
  5. Combo2:
  6. me.combo1.enabled = false
  7. me.combo2.enabled = true
  8. me.combo3.enabled = false
  9. etc..
  10.  
Of course you'll also need a button to reset all combo's....

Nic;o)
Jan 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.