473,791 Members | 3,122 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get properties of option button?

Access 2000

How can I get the properties of the selected option button within an option
group?

With the code below it returns the 'HelpcontextID) of the option group, and
not the ID associated with the selected button.

Me.ActiveContro l.Properties("H elpcontextId")

Thanks for any help.

Adrian
Nov 12 '05 #1
6 2883
Since you are using ActiveControl, I'm guessing that this is a generic piece
of code that gets called when the user presses F1. If that is the case, it
would probably be a lot easier to just include all of the options in that
help page or have the option group call a page with links that take you to
each of the options.

--
Wayne Morgan
MS Access MVP
"Adrian" <no****@hotmail .com> wrote in message
news:bv******** ***********@new s.demon.co.uk.. .
Access 2000

How can I get the properties of the selected option button within an option group?

With the code below it returns the 'HelpcontextID) of the option group, and not the ID associated with the selected button.

Me.ActiveContro l.Properties("H elpcontextId")

Thanks for any help.

Adrian

Nov 12 '05 #2
Wayne,

Thanks for your reply.
have the option group call a page with links

That was my fallback strategy! But I had hoped it would not be too difficult
to take the user directly to the correct help page.

Adrian.

"Wayne Morgan" <co************ *************** @hotmail.com> wrote in message
news:My******** **********@news svr23.news.prod igy.com... Since you are using ActiveControl, I'm guessing that this is a generic piece of code that gets called when the user presses F1. If that is the case, it
would probably be a lot easier to just include all of the options in that
help page or have the option group call a page with links that take you to
each of the options.

--
Wayne Morgan
MS Access MVP
"Adrian" <no****@hotmail .com> wrote in message
news:bv******** ***********@new s.demon.co.uk.. .
Access 2000

How can I get the properties of the selected option button within an

option
group?

With the code below it returns the 'HelpcontextID) of the option group,

and
not the ID associated with the selected button.

Me.ActiveContro l.Properties("H elpcontextId")

Thanks for any help.

Adrian


Nov 12 '05 #3
On Tue, 27 Jan 2004 12:17:02 -0000, Adrian wrote:

Try using the following in the AfterUpdate event of the OptionGroup. Not
entirely simple, but not all that complicated either. Remember to change
the control names to what you are using.

Dim cntrl As Control
For Each cntrl In Me!OptionGroup. Controls
If cntrl.ControlTy pe = ac(OptionButton Type) Then
If cntrl.OptionVal ue = Me!OptionGroup Then
Me!OptionGroup. HelpContextId = cntrl.HelpConte xtId
End If
End If
Next cntrl

--
Mike Storr
veraccess.com

Wayne,

Thanks for your reply.
have the option group call a page with links

That was my fallback strategy! But I had hoped it would not be too

difficult to take the user directly to the correct help page.

Adrian.


Nov 12 '05 #4
Mike,

Thanks very much. That works very nicely.

Any ideas of how to pass the helpcontextid for a tab (page) to the
helpcontextid for the form? I cannot find an event that fires when the
active tab changes.

Thanks again.

Adrian

"Mike Storr" <st******@sympa tico.ca> wrote in message
news:1b******** *************** *******@40tude. net...
On Tue, 27 Jan 2004 12:17:02 -0000, Adrian wrote:

Try using the following in the AfterUpdate event of the OptionGroup. Not
entirely simple, but not all that complicated either. Remember to change
the control names to what you are using.

Dim cntrl As Control
For Each cntrl In Me!OptionGroup. Controls
If cntrl.ControlTy pe = ac(OptionButton Type) Then
If cntrl.OptionVal ue = Me!OptionGroup Then
Me!OptionGroup. HelpContextId = cntrl.HelpConte xtId
End If
End If
Next cntrl

--
Mike Storr
veraccess.com

Wayne,

Thanks for your reply.
have the option group call a page with links


That was my fallback strategy! But I had hoped it would not be too

difficult
to take the user directly to the correct help page.

Adrian.


Nov 12 '05 #5
On Wed, 28 Jan 2004 10:47:35 GMT, Adrian wrote:

It depends on what triggers the move to a new page. The Click event applies
to each page in the tabcontrol, so you could use it to set
Me.HelpContextI D = Me!TabControl.P ages("PageName" ).HelpContextID .
The OnChange event of the tabcontrol itself fires when the focus moves to a
different page. You can also use the Value property of the tabcontrol -
which is the selected page.
--
Mike Storr
veraccess.com

Mike,

Thanks very much. That works very nicely.

Any ideas of how to pass the helpcontextid for a tab (page) to the
helpcontextid for the form? I cannot find an event that fires when the
active tab changes.

Thanks again.

Adrian

"Mike Storr" <st******@sympa tico.ca> wrote in message
news:1b******** *************** *******@40tude. net...
On Tue, 27 Jan 2004 12:17:02 -0000, Adrian wrote:

Try using the following in the AfterUpdate event of the OptionGroup. Not
entirely simple, but not all that complicated either. Remember to change
the control names to what you are using.

Dim cntrl As Control
For Each cntrl In Me!OptionGroup. Controls
If cntrl.ControlTy pe = ac(OptionButton Type) Then
If cntrl.OptionVal ue = Me!OptionGroup Then
Me!OptionGroup. HelpContextId = cntrl.HelpConte xtId
End If
End If
Next cntrl

--
Mike Storr
veraccess.com

Wayne,

Thanks for your reply.

> have the option group call a page with links

That was my fallback strategy! But I had hoped it would not be too

difficult
to take the user directly to the correct help page.

Adrian.


Nov 12 '05 #6
Mike,

Thanks for your help. That has given me some ideas to have a look at.

Adrian

"Mike Storr" <st******@sympa tico.ca> wrote in message
news:1m******** *************** ******@40tude.n et...
On Wed, 28 Jan 2004 10:47:35 GMT, Adrian wrote:

It depends on what triggers the move to a new page. The Click event applies to each page in the tabcontrol, so you could use it to set
Me.HelpContextI D = Me!TabControl.P ages("PageName" ).HelpContextID .
The OnChange event of the tabcontrol itself fires when the focus moves to a different page. You can also use the Value property of the tabcontrol -
which is the selected page.
--
Mike Storr
veraccess.com

Mike,

Thanks very much. That works very nicely.

Any ideas of how to pass the helpcontextid for a tab (page) to the
helpcontextid for the form? I cannot find an event that fires when the
active tab changes.

Thanks again.

Adrian

"Mike Storr" <st******@sympa tico.ca> wrote in message
news:1b******** *************** *******@40tude. net...
On Tue, 27 Jan 2004 12:17:02 -0000, Adrian wrote:

Try using the following in the AfterUpdate event of the OptionGroup. Not entirely simple, but not all that complicated either. Remember to change the control names to what you are using.

Dim cntrl As Control
For Each cntrl In Me!OptionGroup. Controls
If cntrl.ControlTy pe = ac(OptionButton Type) Then
If cntrl.OptionVal ue = Me!OptionGroup Then
Me!OptionGroup. HelpContextId = cntrl.HelpConte xtId
End If
End If
Next cntrl

--
Mike Storr
veraccess.com
Wayne,

Thanks for your reply.

>> have the option group call a page with links

That was my fallback strategy! But I had hoped it would not be too
difficult
to take the user directly to the correct help page.

Adrian.


Nov 12 '05 #7

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

Similar topics

2
3420
by: Michael Winter | last post by:
Below is the IDL definition of the HTMLOptionElement. interface HTMLOptionElement : HTMLElement { readonly attribute HTMLFormElement form; attribute boolean defaultSelected; readonly attribute DOMString text; attribute long index; attribute boolean disabled; attribute DOMString label; readonly attribute boolean selected;
6
13378
by: Luke Dalessandro | last post by:
I'm not sure if this is the correct forum for platform specific (Mozilla/Firefox) javascript problems, so just shout and point me to the correct newsgroup if I'm being bad. Here's the deal... html file (generated using .NET 2.0 beta2): <form method="post" action="Test2.aspx" id="form1">
3
9276
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to work on FireFox or Netscape. What could be wrong? The function: function setActiveTab(tabNo) {
24
5451
by: downwitch | last post by:
Hi, I know this has been covered here and in the .public groups, but it seems like it's been a while, especially around here, so I just thought I'd ask again to see if anyone has figured out a new angle. If I have a class MyClass--not a collection container but a single-level class--that has a bunch of properties of different types, I'd like to be able to reference them via the standard VBA syntax of
0
1649
by: enantiomer | last post by:
Having a problem with visual studio 2005 doing ASP.net. when in source mode (i.e. looking at the html directly), in the properties toolbar is an option called "DOCUMENT". It has some basic information like culture and title. From what I remember, when you switch to design view though, it should present an option in the properties toolbar drop down that has the actual form object. This shows more detailed information such as an event...
1
1424
by: =?Utf-8?B?aXd1Y29tcHV0ZXJnZWVrMDU=?= | last post by:
I have encountered a frustrating problem with the VB environment, and I am afraid I need to re-install it on my system. I would like to know whether any of you have encountered the same problem or could possibly let me know of a quicker fix. The essence of the problem is this: when I select the properties of a particular object (such as a button, label, or even a form), nothing appears in the properties window, as it should. I have...
1
3700
by: sunnyluthra1 | last post by:
Hi Everyone, I am working on a piece of code, that displays the properties(Name, Datatype, size & Description) of the table in the database. Now I want to further Enhance the code. I Have created a form in MS Access, on that form, I have 2 buttons & a text box. One button is to select a mdb file, whom properties i want to display. Second button then stores that properties in a Excel file. when I open the file using first button, the path of...
4
1098
by: 2levelsabove | last post by:
<form method="post" action="javascript:void(0);" name="ShareOptionsForm" onsubmit="if (VerifyForm('ShareOptionsForm')) { AddShareJob(); HideShareOptions(); setTimeout('RefreshCart()', 1000); } else { return false; }"> <p><label for="ContactID">Recipient</label><br /> <select name="ContactID" id="ContactID" onChange="FadeOutError('RecipientError')"> <option value="">Select a Recipient...</option>
0
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10419
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10201
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9987
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7531
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6770
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5424
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.