473,473 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to Create Greyed out boxes that are only enabled with a Checkmark

1 New Member
Hi everyone, I am not a programmer by any means, just a student who is trying to create an Access database for use in medical research.

So in my form that I am creating I have several YES/NO fields.

I would like to make it so that you can only enable the YES/NO fields:
Prog_2ndline_del11q
Prog_2ndline_del17p
Prog_2ndline_Normal
IF
Prog_2ndline_checkcyto is checked YES on its checkbox.

I tried looking through these forums but some of the questions were similar but not exactly the same as mine and I didn't know where should I be entering the code in addition to if just changing the field name.

Thanks for your help everyone!
Mar 17 '17 #1
1 859
PhilOfWalton
1,430 Recognized Expert Top Contributor
On the After Update of Prog_2ndline_checkcyto you need

Expand|Select|Wrap|Line Numbers
  1. Sub  Prog_2ndline_checkcyto_AfterUpdate
  2.     If Prog_2ndline_checkcyto = True then
  3.         Prog_2ndline_del11q.Locked = True
  4.         Prog_2ndline_del17p.Locked = True
  5.         Prog_2ndline_Normal.Locked = True
  6.     Else
  7.         Prog_2ndline_del11q.Locked = False
  8.         Prog_2ndline_del17p.Locked = False
  9.         Prog_2ndline_Normal.Locked = False
  10. End Sub
  11.  
Phil
Mar 19 '17 #2

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

Similar topics

1
by: New Devil | last post by:
hi all, Can anybody tell me how to create checkboxes dynamically..plz write the exact code if u can.. thanx ibrahim@islamabad.net Posted Via Usenet.com Premium Usenet Newsgroup Services...
1
by: Usman Ghani | last post by:
Hi All, Please help me to develop this one page please. I have a page on which I have a label control, just one label with no text. Next I start a loop to read the headers of emails and during...
2
by: crjunk | last post by:
I'm trying to find a way to create input boxes dynamically on the client side but everything that I've come across works with IE, but not FireFox. On my web page, I have the following input...
9
by: Bill (Unique as my name) | last post by:
Please suggest some links or sources which show how to set up form text boxes in VBA. Thank you so much.
2
by: Abhi | last post by:
i need to create a user in web mail using dotnet coad by using webmailserver api ex: xxx is my webmail then i want to create to a user in that webmail xxx ex: yyy@xxx.com how i should do in...
6
by: =?Utf-8?B?VG9kZCBKYXNwZXJz?= | last post by:
Hey guys, I really appreciate any advice you all can give me. I'm developing a ..NET 2.0 ASP page using VS 2005. This page will display "events". There is a MAIN event, and "sub" events. I...
10
by: Lysander | last post by:
Hi, I'm stuck, and hope some one can help me. I am tasked with creating several huge surveys. These are all very structured and so I intend to store the survey questions and answers in tables and...
3
by: ANURAG JAIN | last post by:
Hi, Can any help to create textboxes in VB.06 on run time. please provide the code if anybody have. Thanks in advance Anuarg Jain
2
by: deegeorge | last post by:
Hi, I would like to know about iPhone enabled websites. What is an iPhone enabled website. What are the technologies required to create an iPhone enabled website. WML or XHTML Basic is better to...
3
by: Kylee Lothrop | last post by:
Hi, I was wondering if anyone knows how to create check boxes in a menu and have them toggle in VBA (Access 2003). Another option is to use a comboBox but I think this looks bad and a dropdown menu...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.