473,395 Members | 1,530 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,395 software developers and data experts.

ControlType can someone link me to the list

I was doing this on a form to use a keydown event

If ActiveControl.ControlType = acComboBox Then

Well for some reason in a different database it would not work.
It must have been a library or someting because when I replaced it
with this

If ActiveControl.ControlType = 107 Then

it worked fine.

I found this list of codes for the control types and now I can't find
it anywhere.

can someone tell me where the list might be found...I would have sworn
I found it in the access help but not any more.

Internet maybe?

thanks for any help
Aug 2 '07 #1
4 17463
In Access, press Ctrl+G to get you into the code window.
Then press F2 to open the Object Browser
Search for:
acComboBox

It shows you all the members of acControlType

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"sparks" <js******@swbell.netwrote in message
news:3h********************************@4ax.com...
>I was doing this on a form to use a keydown event

If ActiveControl.ControlType = acComboBox Then

Well for some reason in a different database it would not work.
It must have been a library or someting because when I replaced it
with this

If ActiveControl.ControlType = 107 Then

it worked fine.

I found this list of codes for the control types and now I can't find
it anywhere.

can someone tell me where the list might be found...I would have sworn
I found it in the access help but not any more.

Internet maybe?

thanks for any help
Aug 2 '07 #2
Thanks but I was looking for the list of codes.
acComboBox = 107
there is a full list somewhere but I can't find it.
On Thu, 2 Aug 2007 23:08:14 +0800, "Allen Browne"
<Al*********@SeeSig.Invalidwrote:
>acComboBox
Aug 2 '07 #3
The object browser does show the values (one by one.)

There's a list here if you prefer:
http://allenbrowne.com/ser-73.html#ControlTypeName

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"sparks" <js******@swbell.netwrote in message
news:q8********************************@4ax.com...
Thanks but I was looking for the list of codes.
acComboBox = 107
there is a full list somewhere but I can't find it.
On Thu, 2 Aug 2007 23:08:14 +0800, "Allen Browne"
<Al*********@SeeSig.Invalidwrote:
>>acComboBox
Aug 2 '07 #4
Found it

AcControlType

Constant Value
acBoundObjectFrame 108
acCheckBox 106
acComboBox 111
acCommandButton 104
acCustomControl 119
acImage 103
acLabel 100
acLine 102
acListBox 110
acObjectFrame 114
acOptionButton 105
acOptionGroup 107
acPage 124
acPageBreak 118
acRectangle 101
acSubform 112
acTabCtl 123
acTextBox 109
acToggleButton 122

I can not understand why one time I will use ControlType = acComboBox
and everything is fine. Then one day ControlType = acComboBox

Access will scream whats an acComboBox....NEVER HEARD OF IT
change it to ControlType =111 and it works.

On Thu, 02 Aug 2007 15:05:57 GMT, sparks <js******@swbell.netwrote:
>I was doing this on a form to use a keydown event

If ActiveControl.ControlType = acComboBox Then

Well for some reason in a different database it would not work.
It must have been a library or someting because when I replaced it
with this

If ActiveControl.ControlType = 107 Then

it worked fine.

I found this list of codes for the control types and now I can't find
it anywhere.

can someone tell me where the list might be found...I would have sworn
I found it in the access help but not any more.

Internet maybe?

thanks for any help
Aug 3 '07 #5

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

Similar topics

1
by: John Doe | last post by:
I have a PHP page that generates a list box with several options in it. I would like to have a "view" link next to the list box. When the user changes the contents of the list box, I would like...
8
by: sudhirlko2001 | last post by:
How to swap two nodes of doubly Linklist
4
by: Edwin Knoppert | last post by:
I wonder how i can get rid of the warnings. I pass one control as object to a procedure. However, the controltype differs per scenario, therefore i choose for AS object. I want to set a style...
4
by: emanshu, Munish Nayyar | last post by:
Hi all, i am looking for different solutions for the fow:- problems please let me know if anyone have any idea. problem 1:- we have link list ( singly link list ), in which some node( say X...
1
by: sri2097 | last post by:
Hi all, I have written a Link list implementation in Python (Although it's not needed with Lists and Dictionaries present. I tried it just for the kicks !). Anyway here is the code - # Creating...
4
by: plmanikandan | last post by:
Hi, I am new to link list programming.I need to traverse from the end of link list.Is there any way to find the end of link list without traversing from start(i.e traversing from first to find the...
1
by: ahoway | last post by:
I am having problems deleting a node from a link list. I need to delete the node which contains the number six. This is what I have so far..... Thank you in advance. #include <iostream>...
6
by: Bob Alston | last post by:
Looking for someone with experience building apps with multiple instances of forms open. I am building an app for a nonprofit organizations case workers. They provide services to the elderly. ...
0
ADezii
by: ADezii | last post by:
Rather than using CurrentProject.Connection or entering your own Connection information, ADO supports storing Connection information in an external file called a Data Link File (which normally has a...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.