PC Review


Reply
Thread Tools Rate Thread

Option button

 
 
=?Utf-8?B?QXNoYnk=?=
Guest
Posts: n/a
 
      22nd Feb 2007
when an option button is selected I want to link it to a field in a table
with a yes/no value

ie
Table = Product Group
field = Tube (yes/no)

if option button is selected then tbe = yes.

How can I achieve this?

Thanks Ashby
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      22nd Feb 2007
Hi Ashby,

Use a checkbox rather than an option button.

Damian.

"Ashby" wrote:

> when an option button is selected I want to link it to a field in a table
> with a yes/no value
>
> ie
> Table = Product Group
> field = Tube (yes/no)
>
> if option button is selected then tbe = yes.
>
> How can I achieve this?
>
> Thanks Ashby

 
Reply With Quote
 
=?Utf-8?B?QXNoYnk=?=
Guest
Posts: n/a
 
      22nd Feb 2007
Really it would be the same problem with the checkbox gining a true/false
,-1/0 answer...

"Damian S" wrote:

> Hi Ashby,
>
> Use a checkbox rather than an option button.
>
> Damian.
>
> "Ashby" wrote:
>
> > when an option button is selected I want to link it to a field in a table
> > with a yes/no value
> >
> > ie
> > Table = Product Group
> > field = Tube (yes/no)
> >
> > if option button is selected then tbe = yes.
> >
> > How can I achieve this?
> >
> > Thanks Ashby

 
Reply With Quote
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      22nd Feb 2007
I am assuming your form is getting its data from the Product Group table. If
so, place a checkbox on yoru form and set its data source to "Tube". It will
then save the value into the Tube field of the Product Group table when
someone clicks on it.

Is this what you are meaning? If not, can you provide a little further
information please.

Damian.

"Ashby" wrote:

> Really it would be the same problem with the checkbox gining a true/false
> ,-1/0 answer...
>
> "Damian S" wrote:
>
> > Hi Ashby,
> >
> > Use a checkbox rather than an option button.
> >
> > Damian.
> >
> > "Ashby" wrote:
> >
> > > when an option button is selected I want to link it to a field in a table
> > > with a yes/no value
> > >
> > > ie
> > > Table = Product Group
> > > field = Tube (yes/no)
> > >
> > > if option button is selected then tbe = yes.
> > >
> > > How can I achieve this?
> > >
> > > Thanks Ashby

 
Reply With Quote
 
=?Utf-8?B?UENI?=
Guest
Posts: n/a
 
      22nd Feb 2007
Hi damian

I've got about thirty different product types.
If I insert a frame on a form and link-bound the option buttons to store
their vaule in the field say "product type" I can only use 20 option buttons.

If a split these groups into two, making two frames with fifteen option
buttons in each, I run the risk of entering "two values" into the field...

I was really looking to create a frame with as many options as I'd like,
where only one is selected and it's product group updated to the filed.

"Damian S" wrote:

> I am assuming your form is getting its data from the Product Group table. If
> so, place a checkbox on yoru form and set its data source to "Tube". It will
> then save the value into the Tube field of the Product Group table when
> someone clicks on it.
>
> Is this what you are meaning? If not, can you provide a little further
> information please.
>
> Damian.
>
> "Ashby" wrote:
>
> > Really it would be the same problem with the checkbox gining a true/false
> > ,-1/0 answer...
> >
> > "Damian S" wrote:
> >
> > > Hi Ashby,
> > >
> > > Use a checkbox rather than an option button.
> > >
> > > Damian.
> > >
> > > "Ashby" wrote:
> > >
> > > > when an option button is selected I want to link it to a field in a table
> > > > with a yes/no value
> > > >
> > > > ie
> > > > Table = Product Group
> > > > field = Tube (yes/no)
> > > >
> > > > if option button is selected then tbe = yes.
> > > >
> > > > How can I achieve this?
> > > >
> > > > Thanks Ashby

 
Reply With Quote
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      22nd Feb 2007
If you have 30 different product types, and it's only possible to have a
single product type selected, you should have the product types in a lookup
list (table) that is linked to your main table. Then you can have a single
combo box to display your 30 items and the user can only select one. If you
need a new product type, you simply add it into your table. Here's a sample:

tlkProductTypes
ProductTypeID autonumber
ProductType text

tblProduct
ProductID
ProductName
ProductTypeID

See what I mean?

Damian.

"PCH" wrote:

> Hi damian
>
> I've got about thirty different product types.
> If I insert a frame on a form and link-bound the option buttons to store
> their vaule in the field say "product type" I can only use 20 option buttons.
>
> If a split these groups into two, making two frames with fifteen option
> buttons in each, I run the risk of entering "two values" into the field...
>
> I was really looking to create a frame with as many options as I'd like,
> where only one is selected and it's product group updated to the filed.
>
> "Damian S" wrote:
>
> > I am assuming your form is getting its data from the Product Group table. If
> > so, place a checkbox on yoru form and set its data source to "Tube". It will
> > then save the value into the Tube field of the Product Group table when
> > someone clicks on it.
> >
> > Is this what you are meaning? If not, can you provide a little further
> > information please.
> >
> > Damian.
> >
> > "Ashby" wrote:
> >
> > > Really it would be the same problem with the checkbox gining a true/false
> > > ,-1/0 answer...
> > >
> > > "Damian S" wrote:
> > >
> > > > Hi Ashby,
> > > >
> > > > Use a checkbox rather than an option button.
> > > >
> > > > Damian.
> > > >
> > > > "Ashby" wrote:
> > > >
> > > > > when an option button is selected I want to link it to a field in a table
> > > > > with a yes/no value
> > > > >
> > > > > ie
> > > > > Table = Product Group
> > > > > field = Tube (yes/no)
> > > > >
> > > > > if option button is selected then tbe = yes.
> > > > >
> > > > > How can I achieve this?
> > > > >
> > > > > Thanks Ashby

 
Reply With Quote
 
John Spencer
Guest
Posts: n/a
 
      22nd Feb 2007
I agree with Damian that a combobox makes much more sense in this situation
(or a listbox as second choice).

The 20 option limit is a limit of the wizard and not of the option group.
You can add more choices to the option group after the wizard creates the
option box with the first 20. Once the wizard has finished, click on the
option button or check box in the toolbar and then click inside the option
control (frame) - you will now have another option available. Repeat as
many times as you wish (there is an upper limit as to the number of controls
on a form.)

But with this many choices, I would suggest the a combobox makes much more
sense in terms of space required on the form and in terms of ease-of-use and
ease of modification.
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"Damian S" <(E-Mail Removed)> wrote in message
news:740B7942-78E5-4355-9056-(E-Mail Removed)...
> If you have 30 different product types, and it's only possible to have a
> single product type selected, you should have the product types in a
> lookup
> list (table) that is linked to your main table. Then you can have a
> single
> combo box to display your 30 items and the user can only select one. If
> you
> need a new product type, you simply add it into your table. Here's a
> sample:
>
> tlkProductTypes
> ProductTypeID autonumber
> ProductType text
>
> tblProduct
> ProductID
> ProductName
> ProductTypeID
>
> See what I mean?
>
> Damian.
>
> "PCH" wrote:
>
>> Hi damian
>>
>> I've got about thirty different product types.
>> If I insert a frame on a form and link-bound the option buttons to store
>> their vaule in the field say "product type" I can only use 20 option
>> buttons.
>>
>> If a split these groups into two, making two frames with fifteen option
>> buttons in each, I run the risk of entering "two values" into the
>> field...
>>
>> I was really looking to create a frame with as many options as I'd like,
>> where only one is selected and it's product group updated to the filed.
>>
>> "Damian S" wrote:
>>
>> > I am assuming your form is getting its data from the Product Group
>> > table. If
>> > so, place a checkbox on yoru form and set its data source to "Tube".
>> > It will
>> > then save the value into the Tube field of the Product Group table when
>> > someone clicks on it.
>> >
>> > Is this what you are meaning? If not, can you provide a little further
>> > information please.
>> >
>> > Damian.
>> >
>> > "Ashby" wrote:
>> >
>> > > Really it would be the same problem with the checkbox gining a
>> > > true/false
>> > > ,-1/0 answer...
>> > >
>> > > "Damian S" wrote:
>> > >
>> > > > Hi Ashby,
>> > > >
>> > > > Use a checkbox rather than an option button.
>> > > >
>> > > > Damian.
>> > > >
>> > > > "Ashby" wrote:
>> > > >
>> > > > > when an option button is selected I want to link it to a field in
>> > > > > a table
>> > > > > with a yes/no value
>> > > > >
>> > > > > ie
>> > > > > Table = Product Group
>> > > > > field = Tube (yes/no)
>> > > > >
>> > > > > if option button is selected then tbe = yes.
>> > > > >
>> > > > > How can I achieve this?
>> > > > >
>> > > > > Thanks Ashby



 
Reply With Quote
 
=?Utf-8?B?SGFycnk=?=
Guest
Posts: n/a
 
      20th Apr 2007
Just create within your table;
fieldname data type
tbe yes/no
This creates a checkbox in your table. checked=yes unchecked= no.
Working with its status can be done as
if me.tbe = true then "Whatever you want"

Harry

"Ashby" wrote:

> when an option button is selected I want to link it to a field in a table
> with a yes/no value
>
> ie
> Table = Product Group
> field = Tube (yes/no)
>
> if option button is selected then tbe = yes.
>
> How can I achieve this?
>
> Thanks Ashby

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to select option button in option group cm Microsoft Excel Programming 2 20th Oct 2009 05:49 PM
need help on how to grey out one option button in one group box based on the selection of another option button in another group box George Microsoft Excel Programming 13 11th Mar 2007 03:08 PM
Scanning Option Group (VB 6 Option Button Control Array) Michael D. Ober Microsoft VB .NET 6 21st Jun 2006 07:55 AM
keep source formatting is not an option in paste option button =?Utf-8?B?VGluYQ==?= Microsoft Excel Misc 0 20th Feb 2006 10:58 PM
Sleep button option hide in power option properties =?Utf-8?B?RXJhcmQgRGF2aWQ=?= Windows XP General 3 29th Jun 2004 04:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 PM.