473,503 Members | 3,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide / Show Checkbox - Access Form

294 Contributor
I've two drop down boxes. Only if both of them are ' > "" ' should the check box appear (and therefore be able to be clicked).. How is this performed?

I am trying to prevent an error from checking a Do Not Use box when nothing is selected. Does anyone else have a better suggestion?

Maybe put constraints on the GotFocus or something?

Thanks

Didn't realize I was in the Java forum. Can an admin move this? Sorry.
Sep 24 '13 #1
6 2159
Rabbit
12,516 Recognized Expert Moderator MVP
Your thread has been moved to the Access forum. Please show us the code that causes the error along with the full error message.
Sep 24 '13 #2
mcupito
294 Contributor
Thanks, Rabbit.

Here are 2 screen shots. One is of the design view, the other is form view with the error.

I need to make sure there's a selection in Company and Line of Business before they can click the Do Not Use.
Attached Images
File Type: jpg Captur1e.jpg (9.9 KB, 183 views)
File Type: jpg Capture.jpg (17.3 KB, 264 views)
Sep 24 '13 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Please show us the code that causes the error.
Sep 24 '13 #4
mcupito
294 Contributor
I simply used the If IsNull (Me.[Object].Value) Then

Sorry if I confused you with the error aspect of my question. That was not it.
Sep 24 '13 #5
Rabbit
12,516 Recognized Expert Moderator MVP
What's the rest of the code? If there's no error, I don't understand what your question is.
Sep 24 '13 #6
mcupito
294 Contributor
I'm not sure if I can be more clear. I explained that I wanted to check the values of 2 combo boxes to see if there was a value in either of them, and if there wasn't - it was supposed to throw an error if the checkbox is selected, which wouldn't allow it to be selected.
Sep 30 '13 #7

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

Similar topics

4
7980
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
9
3249
by: Frances | last post by:
Hi All, * PREMISE * I'm creating an Access form with 150 items subdivided into 20 categories. Multiple categories (and items) can be selected so my user wants checkboxes. All of the options...
1
2514
by: jef | last post by:
I have an HTML Grid Layout Panel on my web form that I would like to hide/show via certain events in my VB code behind. However, I'm not sure how to reference the panel. I've set the ID property...
13
36558
by: Tim Smallwood | last post by:
Hi, This is probably a stupid question, but I can't seem to get a form to show / load? In the older versions of VB I'd use frmMyform.show / load myForm, etc? I looked at the help file and it...
4
20989
by: devine | last post by:
Hi All, I am VERY new to Javascript. I have been provided with some code, which will enable me to hide/show a text area and change a submit button dependant on a check box. <!DOCTYPE html...
2
3621
by: liljet | last post by:
***From previous post*** Is it possible to have an Access form that displays in a text box the last modified date of c:\myworkbook.xls? try setting the data property of the text box to ... =...
3
120602
by: kartikss | last post by:
HI!! If I have 2 forms ie form 1 , form 2 In Form 1 I have a command button to open form 2. how will i hide form 1 and show form 2, until i click on close button it open form 1 and form 2...
15
3771
by: worked | last post by:
I have a script that hides / shows form elements, and wrapped in a tab script (tab navigation). When the code is duplicated (per tab content), the hide / show function works for the first tab but...
1
3122
by: deepakraikar | last post by:
i have done a working code of visiblity of checkboxes depending upon the drop dwon selection.......it works fine with mozilla but its not working with the internet explorer...... my javascript...
4
4017
by: julietbrown | last post by:
In the detail section of a report I want to hide a checkbox control and it's label if the value of the control is false. I sort of expected the following to work. Private Sub...
0
7261
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
7315
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...
0
5559
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,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.