473,396 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Clearing Checkboxes on a form / Intellisense Issue

RLN
Re: Access 2003

I found a method here in the newsgroup that works for clearing
checkboxes, but don't understand a particular line of code and how it
works.

Here is the code:
1. Dim ctrl As Control
2. For Each ctrl In Me.Controls
3. 'uncheck all of the checkboxes...
4. If ctrl.ControlType = acCheckBox Then
5. ctrl.Value = False
6. End If
7. Next
8. End Sub

When I type the word "ctrl." on line 4, intellisense comes up and
presents a list containing
"Application, Column, Controls, Dropdown, Form.....etc..)
The only "C" options in intellisense are "Column" and "Controls".
"ControlType" is not presented in intellisense as an option. Why? Had
I not found this 8 line snippet of code here in the newsgroup, I would
have never would have ever guessed to try "ControlType" to get this to
work!

How many more of these are "hidden" from Intellisense and how can I
find them so that I don't waste uneccessary time hunting for a code
snippet when those options should have been in the intellisense?

Are there settings for the intellisense feature that can be tweaked so
I can see the true correct options when I type objects that are
"Dimmed" properly?

Thanks.

Sep 12 '06 #1
1 2555
"RLN" <rl***************@yahoo.comwrote in message
<11*********************@m73g2000cwd.googlegroups. com>:
Re: Access 2003

I found a method here in the newsgroup that works for clearing
checkboxes, but don't understand a particular line of code and how it
works.

Here is the code:
1. Dim ctrl As Control
2. For Each ctrl In Me.Controls
3. 'uncheck all of the checkboxes...
4. If ctrl.ControlType = acCheckBox Then
5. ctrl.Value = False
6. End If
7. Next
8. End Sub

When I type the word "ctrl." on line 4, intellisense comes up and
presents a list containing
"Application, Column, Controls, Dropdown, Form.....etc..)
The only "C" options in intellisense are "Column" and "Controls".
"ControlType" is not presented in intellisense as an option. Why?
Had I not found this 8 line snippet of code here in the newsgroup, I
would have never would have ever guessed to try "ControlType" to get
this to work!

How many more of these are "hidden" from Intellisense and how can I
find them so that I don't waste uneccessary time hunting for a code
snippet when those options should have been in the intellisense?

Are there settings for the intellisense feature that can be tweaked
so I can see the true correct options when I type objects that are
"Dimmed" properly?

Thanks.
Control is a "generic" type, which can be assigned all the different
types of controls. This is probably why the intellisence won't list
all the properties (of the controls we would wish it to do?).

If you check out the help file for the control types you wish to
manipulate (for instance, type TextBox, then hit F1), then check
out the Properties link.

Also for instance by declaring a variable as an explicit controltype

Dim x As TextBox

you can investigate the properties of this varible, which in this
case means properties of an Access Textbox.

--
Roy-Vidar
Sep 12 '06 #2

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

Similar topics

0
by: Frank Collins | last post by:
Can anyone point me to some good examples on the web of using values from dynamically created checkboxes on forms in ASP, particularly relating to INSERTING those values into a SQL or Access...
5
by: VbUser25 | last post by:
hi i need urgent responses.. i have some 15 checkboxex on a form... i want to 1st check the no. of checkboxes that are checked?? and then loop it that many times adn insert the quantities the...
1
by: hortoristic | last post by:
We are using JavaScript to Enable/Disable certain fields on web pages based on business rules. A simple example is if when using an option type tag, and the two options are Yes and No. If YES...
3
by: Mark | last post by:
I am looking for an example of using checkboxes in a repeater control where the checkbox state is persisted from page to page. Thank you, Mark
4
by: moondaddy | last post by:
There are different times when I will have a group of checkboxes and need to force only one to be checked at a time. I would also like to do this client side and not require a postback. These...
5
by: sianan | last post by:
I have an ASP.NET custom control, which contains a DataGrid with checkboxes. I am trying to figure out how to retrieve the selected records, based on the checkbox's checked state. I want to send...
5
by: Stephen D Cook | last post by:
I'm trying to clear a form after the user clicks the Insert button so the textboxes are empty and the checkboxes are unchecked. When I try to put the code in the Click part of the Insert button, I...
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
0
markrawlingson
by: markrawlingson | last post by:
It seems that a lot of people run into this issue in regards to dealing with the result that checkboxes return to the Request.Form object. So this article is intended to fully explain how checkboxes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.