473,499 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invisible Check Boxes

Is there any way to do this on a form in Access 97? If the value of a
combo box is .5, I want two check boxes to be visible (labels are a.m
and p.m.). If the value of the combo box is 1, I want the two check
boxes to be invisible.

Thanks,
JD
Nov 12 '05 #1
5 5394
In the Combo Box's AfterUpdate event AND in the form's Current event:

CheckAM.Visible = ComboBox = .5
CheckPM.Visible = ComboBox = .5

The above assumes the Combo Box value shown is the combo's Bound column.

If it is not the bound column then use
=ComboBox.Column(x)
where x is the column shown - 1.
--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
<jd****@yahoo.com> wrote in message
news:75**************************@posting.google.c om...
Is there any way to do this on a form in Access 97? If the value of a
combo box is .5, I want two check boxes to be visible (labels are a.m
and p.m.). If the value of the combo box is 1, I want the two check
boxes to be invisible.

Thanks,
JD

Nov 12 '05 #2
Use this in The Forms OnCurrent event:
Me!ChkBox1.visible = Not Me!ComboBox=1
Me!ChkBox2.visible = Not Me!ComboBox=1

(Replace the names of the Checkboxes and the Combobox)
--
Hope this helps
Arno R

<jd****@yahoo.com> schreef in bericht news:75**************************@posting.google.c om...
Is there any way to do this on a form in Access 97? If the value of a
combo box is .5, I want two check boxes to be visible (labels are a.m
and p.m.). If the value of the combo box is 1, I want the two check
boxes to be invisible.

Thanks,
JD

Nov 12 '05 #3
Thanks, Fred. One more question...I'm using this in a subform, and
when the value of the combo box in one record is .5 and the check box
is visible for that record, it is also visible for all other records
in the subform, even if the value of the combo box is 1. Is there any
way to make this record-specific and not form-specific?

Thanks,
JD

"Fredg" <fg******@att.net> wrote in message news:<lj**********************@bgtnsc05-news.ops.worldnet.att.net>...
In the Combo Box's AfterUpdate event AND in the form's Current event:

CheckAM.Visible = ComboBox = .5
CheckPM.Visible = ComboBox = .5

The above assumes the Combo Box value shown is the combo's Bound column.

If it is not the bound column then use
=ComboBox.Column(x)
where x is the column shown - 1.
--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
<jd****@yahoo.com> wrote in message
news:75**************************@posting.google.c om...
Is there any way to do this on a form in Access 97? If the value of a
combo box is .5, I want two check boxes to be visible (labels are a.m
and p.m.). If the value of the combo box is 1, I want the two check
boxes to be invisible.

Thanks,
JD

Nov 12 '05 #4
Jim
Select Combo box's after update event, enter:
if comboName = 0.5 then
Check1Name.visible = false
Check2Name.visible = false
Else
Check1Name.visible = true
Check2Name.visible = true
End if

If you have 3rd possibility, you should use SELECT CASE statement.

jd****@yahoo.com (jd****@yahoo.com) wrote in message news:<75**************************@posting.google. com>...
Is there any way to do this on a form in Access 97? If the value of a
combo box is .5, I want two check boxes to be visible (labels are a.m
and p.m.). If the value of the combo box is 1, I want the two check
boxes to be invisible.

Thanks,
JD

Nov 12 '05 #5
> Thanks, Fred. One more question...I'm using this in a subform, and
when the value of the combo box in one record is .5 and the check box
is visible for that record, it is also visible for all other records
in the subform, even if the value of the combo box is 1. Is there any
way to make this record-specific and not form-specific?


No. In a continuous form, if a control is visible in one record, it is visible
in all records. Using your code in the "On Current" event procedure, you can
control the visibility of the controls as you move from record to record but,
again, this affects every instance of the controls.

--
Bruce M. Thompson, Microsoft Access MVP
bt******@mvps.org (See the Access FAQ at http://www.mvps.org/access)
NO Email Please. Keep all communications

within the newsgroups so that all might benefit.<<
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2420
by: Edward | last post by:
The following html / javascript code produces a simple form with check boxes. There is also a checkbox that 'checks all' form checkboxes hotmail style: <html> <head> <title></title> </head>...
0
1947
by: Robert | last post by:
Stephen, I think I figured out the problem. I was able to get Check Boxes and Option Buttons to work on my form by TURNING OFF RECORD SELECTORS on the form. Not sure why this would make a...
1
3508
by: Dino M. Buljubasic | last post by:
I have two controls, a panel holding check boxes and a treeview beside the panel. I use buttons to scroll both of thes up and down at the same time but I'd like to make scroll bars on the...
3
2877
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
0
1216
by: harkon | last post by:
Hi everybody! I'm just wondering what it would take to make the following: I have an invisible C# frame (opacity 0%) topmost placed, with no control boxes and even no border. Therefore this...
69
8014
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
1
1614
by: Java Kumar | last post by:
Hi Friends, I have a form which contains elements such as check boxes,text box,text area ., Problem is in Check boxes. By default, Check boxes are unchecked and text boxes...
1
2074
by: sbarron76 | last post by:
Good day. Your help would be appreciated on my issue. I have an MS Access 97 database that produces reports that mirror letters with the necessary fields. One of these fields is a series of...
0
1546
by: Kelii | last post by:
Evenlater, Yeah, I don't open the report in preview mode when I setup my recordsource, filters, or sorts. Before I give my solution, I would say that your code will be simpler if you drop the...
0
7014
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
7180
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,...
1
6905
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...
1
4921
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
4609
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
3108
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
1429
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
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
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.