option group value is value from field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi!

I want to create an Option group, with the labels 'Foundation' and 'Higher'.
When 'Foundation' is selected, i want this to place the values from the
'GermanExaminationMarkF' field PLUS the value from the 'GermanCourseworkMark'
field into the 'OverallGrade' field.

However, when the option next to the label 'Higher is selected, i want this
to place the values from the 'GermanExaminationMarkH' field PLUS the value
from the 'GermanCourseworkMark' field into the 'OverallGrade' field.

Any ideas of how to solve this would be much appreciated!

Thank you in advance!
 
Emma,

Private Sub myOptionGroup_Click()
If myOptionGroup = 1 Then 'Foundation and Higher
Me!OverallGrade = Nz(Me!GermanExaminationMarkF, 0) + _
Nz(Me!GermanCourseworkMark, 0)
Else 'Higher
Me!OverallGrade = Nz(Me!GermanExaminationMarkH, 0) + _
Nz(Me!GermanCourseworkMark, 0)
End If
End Sub

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top