By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,786 Members | 1,143 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,786 IT Pros & Developers. It's quick & easy.

option group - adding a caption once the option group is made

P: 5
I have a form that has multiple option groups on it. When I created the form I copied the option groups and then changed the data source for them. But there now doesn't seem to be a caption for any of the copied option groups. I need to refer to the caption property of these groups for a data checking code.

I have looked on the properties page but caption is not on the list any more. I have put a caption on the variable in the table design but this doesn't appear for the option group on the form.

I know I could recreate all the option groups with the wizard but this would be a very big job, and the form doesn't actually have room for all the captions to actually be visible so I am not sure if this would work in the long run.

How do I assign a caption to these groups now?
Or is there a way to use VB code to assign a caption?
Aug 7 '07 #1
Share this Question
Share on Google+
2 Replies


Scott Price
Expert 100+
P: 1,384
Apologies, but it looks like your question got lost in the shuffle.

As far as I know the label over an option group is just that: a label. It isn't associated in any way to the option group frame, and so must be treated as a separate object. If you click on the original label of your option group that you copied, you will be able to confirm this by looking at it's name property. It will accept whatever caption you choose to add to it, just like any other label.

Hope this explains a bit of your confusion. Likely when copying and pasting your option group over, the original caption didn't come with the copy.

Regards,
Scott
Aug 26 '07 #2

Scott Price
Expert 100+
P: 1,384
Also, I'm not sure why you need to refer to the caption(s) of the option group... The characteristic of an option group is that it only returns one numeric value... It only allows one choice in it's radio buttons/checkboxes etc, from which it reads a numeric value.

To programatically require that a label is added to all new controls inside the option group frame, you would use the .AutoLabel method.

Regards,
Scott
Aug 26 '07 #3

Post your reply

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