Sorry Eddie.
GPA = grade point average
-Gary
Is it the calculation, or the programming method you are interested in?
It looks as if the calculation method is described here
http://www.back2college.com/gpa.htm
Programmatically, you would do this with VBA, assuming all the relevant data
is available in the form fields of your document.
You would iterate through the ActiveDocument.FormFields collection to
extract their data into an array and then process the array
If I remember correctly, you have to assign the current ".result" to the
".TextInput.Default" to avoid losing the data. It's such a long time since
I did this sort of stuff, I don't remember fully why I did that!
Eddie
> *From:* gary92fxr<gary92fxr@discussions.microsoft.com>
> *Date:* Tue, 19 Jun 2007 21:35:02 -0700
[quoted text clipped - 18 lines]
> > > Thanks,
> > > Gary
Bear - 20 Jun 2007 14:33 GMT
Gary:
Okay. You can use VBA this way. Start by adding a bookmark or text formfield
to your document to hold the GPA. If you use a text formfield, you can leave
it enabled or disable it (via the Fill-In Enabled check box).
Iterate through the formfield collection
For each formfield that matches your criteria for holding a grade (name or
value?)
Convert the grade to points and add them to a running total
Add the corresponding course hours to a running total
At the end of the iteration do the division, format that result however you
want it displayed (re number of zeros, decimals, etc.)
Put the formatted result into the bookmark or text formfield.
You could add a custom command to the Tools menu (being sure to store this
customization in the same template as your code, which should be the same
template that creates your form) to run the macro. Or you could put a macro
button right on the form beside the GPA text formfield.
Bear

Signature
Windows XP, Word 2000
> Is it the calculation, or the programming method you are interested in?
>
[quoted text clipped - 35 lines]
> > > > Thanks,
> > > > Gary
gary92fxr - 20 Jun 2007 22:18 GMT
Bear, Thank you. Will do.
-Gary
> Gary:
>
[quoted text clipped - 60 lines]
> > > > > Thanks,
> > > > > Gary
gary92fxr - 20 Jun 2007 22:19 GMT
Thanks much for the advice. I'll go with VBA for the GPA. FYI
-Gary
> Is it the calculation, or the programming method you are interested in?
>
[quoted text clipped - 35 lines]
> > > > Thanks,
> > > > Gary