John,
If I understand what you have explained, that is exactly what I want to do.
However, to try and clarify better, I will start with something I do know
from Excel and you let me know if I am on track or not.
In a userform in Excel, I can have TextBox5. A user inputs number 5 into
this field. At this point, TextBox5 holds a string (text) of 5.
With that same thought, I assume that the option group field label will also
hold the numeric value based on the assigned value of the radio button, just
as Textbox5 holds the value of "5".
After this point, I guess the confusion is created. I am not sure how the
value of each option group needs to be stored/retained. Do I need to assign
it to a numeric field or something else? Anyway, I want to be able to pull
these values out in a report or form and view and generate a total score
based on the some of the value of each option group.
Well... for starters, Excel is NOT Access, and Access is not Excel. They are
different; applying Excel syntax and assumptions to an Access database will
work fine sometimes, and other times will get you in no end of trouble!
In Access, there's a much sharper distinction between Tables (the *only* place
where data is stored) and Forms (tools, windows which let you manage the data
in tables). In Excel a spreadsheet serves multiple functions - data entry,
reports, calculations, etc.; this is NOT the case with an Access table. Access
also has strong datatypes, unlike Excel; a spreadsheet cell can indifferently
store a text string, a date, a number, a picture, a formula, etc.; an Access
Table field must store only the specific datatype that its definition permits
(you can't put a text string such as "N/A" into a Number or Date type field,
for example).
A Form is (typically) bound to a table - the table is called the form's
Recordsource. Each Control on the form can be "bound" to a particular field in
the table (you can have unbound controls, but that's not relevant in this
case).
An Option Group is one particular type of control. It's bound to an Integer
Number field in the form's recordsource. The Option Group as a whole has a
numeric value, the predefined value of whichever radio button or checkbox the
user selected. There is no textbox involved. You could of course *ALSO* bind a
Textbox control to the same field in the table, in which case clicking the
radio button whose value is 5 would store an integer number 5 in the table,
and display "5" in the textbox.
It's really important to make a distinction between data *STORAGE* - a text
string, Number, Date/Time, or other value stored in a field in a table - and
data *DISPLAY*. The number 5 can be displayed in a textbox, an option group, a
combo box, etc. but it's still a number in the table.
So you can bind an Option Group (or combo box or listbox or textbox) to a
Number/Long Integer field in your table, so the user can enter a number into
the table using whatever display tool is most convenient; once you have that
number stored in the table, you can use Queries to retrieve it, do
calculations, sums, averages, etc.