Hi Bob,
here is what i would do:
1. create a New Property called MaxScore using following code:
Option Compare Database
Option Explicit
dim sMaxScore as single
Property Let MaxScore (smax as single)
sMaxValue = smax
end Property
Property Get MaxScore () as single
MaxScore = sMaxScore
end Property
2. On the Form_Open event i will fill the MaxScore property for an employee using a query as you already done:
Private Sub Form_Open(Cancel As Integer)
MaxScore = Get Max Possible Score using query
End Sub
3. on the form i add 2 textboxes, txtCurrentScore and txtRestScore
In txtRestScore Control Source property i will put something like this : =[MaxScore]-[txtCurrentScore]
HTH
----- Bob Ewers wrote: -----
I'm trying to devleop an evaluation form. Based on the type of employee there is a max score. I have two fields: one that sums an employee's current score, and one that counts down from the max telling the evaluator how many points are still available. This second field is fed by a query and this is the heart of my problem. With 59 possible evalution items I don't want to write 59 On Update Events. I tried to use an On Change Event in the sum field, but it didn't work. Any suggestions.
Thanks ahead of time