S
snakedog
****HELP****** I have a question to ask you,, I am doing a marking
form to give me a total and a score in % using many fields and a combo
box with Yes=1, No=0, Na=Null, now here is my delema how on earth do
you get the table to show the sum of the Yes and minus the No's and
ignore the Nulls..... right now the option group does not like me
using Null.. This is what I want to do:
Did you check the corner store Yes No Na (for this example lets say
No)=0
do you have a car Yes No Na( for this one lets say Yes)=1
Do you have a bike Yes No Na( for this one lets say Na)=Na
Result = 50% possible 3 two are relevant so the total is 1out of 2= 1=
50%
pls help
Access
Option Group Control (Forms and Reports) [Access 2003 VBA Language
Reference]
An option group on a form or report displays a limited set of
alternatives. An option group makes selecting a value easy since you
can just click the value you want. Only one option in an option group
can be selected at a time.
An option group consists of a group frame and a set of check boxes,
toggle buttons, or option buttons.
Note This control should not be confused with the Dynamic HTML
option group control used on a data access page. For information about
a option group control on a data access page, see Option Group Control
(Data Access Pages).
Remarks
If an option group is bound to a field, only the group frame itself is
bound to the field, not the check boxes, toggle buttons, or option
buttons inside the frame. Instead of setting the ControlSource
property for each control in the option group, you set the OptionValue
property of each check box, toggle button, or option button to a
number that's meaningful for the field to which the group frame is
bound. When you select an option in an option group, Microsoft Access
sets the value of the field to which the option group is bound to the
value of the selected option's OptionValue property.
Note The OptionValue property is set to a number because the value of
an option group can only be a number, not text. Microsoft Access
stores this number in the underlying table. In the preceding example,
if you want to display the name of the shipper instead of a number in
the Orders table, you can create a separate table called Shippers that
stores shipper names, and then make the ShipVia field in the Orders
table a Lookup field that looks up data in the Shippers table.
An option group can also be set to an expression, or it can be
unbound. You can use an unbound option group in a custom dialog box to
accept user input and then carry out an action based on that input.
form to give me a total and a score in % using many fields and a combo
box with Yes=1, No=0, Na=Null, now here is my delema how on earth do
you get the table to show the sum of the Yes and minus the No's and
ignore the Nulls..... right now the option group does not like me
using Null.. This is what I want to do:
Did you check the corner store Yes No Na (for this example lets say
No)=0
do you have a car Yes No Na( for this one lets say Yes)=1
Do you have a bike Yes No Na( for this one lets say Na)=Na
Result = 50% possible 3 two are relevant so the total is 1out of 2= 1=
50%
pls help
Access
Option Group Control (Forms and Reports) [Access 2003 VBA Language
Reference]
An option group on a form or report displays a limited set of
alternatives. An option group makes selecting a value easy since you
can just click the value you want. Only one option in an option group
can be selected at a time.
An option group consists of a group frame and a set of check boxes,
toggle buttons, or option buttons.
Note This control should not be confused with the Dynamic HTML
option group control used on a data access page. For information about
a option group control on a data access page, see Option Group Control
(Data Access Pages).
Remarks
If an option group is bound to a field, only the group frame itself is
bound to the field, not the check boxes, toggle buttons, or option
buttons inside the frame. Instead of setting the ControlSource
property for each control in the option group, you set the OptionValue
property of each check box, toggle button, or option button to a
number that's meaningful for the field to which the group frame is
bound. When you select an option in an option group, Microsoft Access
sets the value of the field to which the option group is bound to the
value of the selected option's OptionValue property.
Note The OptionValue property is set to a number because the value of
an option group can only be a number, not text. Microsoft Access
stores this number in the underlying table. In the preceding example,
if you want to display the name of the shipper instead of a number in
the Orders table, you can create a separate table called Shippers that
stores shipper names, and then make the ShipVia field in the Orders
table a Lookup field that looks up data in the Shippers table.
An option group can also be set to an expression, or it can be
unbound. You can use an unbound option group in a custom dialog box to
accept user input and then carry out an action based on that input.