C
callumsalfield
Him im using this code to calculate ratios:
Private Sub Staff_AfterUpdate()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
[Staff_Pupil] = [Pupils] / [Staff]
[TotalAdults] = [Staff] + [OtherAdults]
[Adult_Pupil] = [Pupils] / [TotalAdults]
End Sub
I want to limit the output of the following two calculations to one
decimal point, if there an easy way? I have already set them to one
decimal point in the table design but this seems to have no effect when
they are calculated....
[Staff_Pupil] = [Pupils] / [Staff] and [Adult_Pupil] = [Pupils] /
[TotalAdults]
Any help appreciated
Cheers
Private Sub Staff_AfterUpdate()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
[Staff_Pupil] = [Pupils] / [Staff]
[TotalAdults] = [Staff] + [OtherAdults]
[Adult_Pupil] = [Pupils] / [TotalAdults]
End Sub
I want to limit the output of the following two calculations to one
decimal point, if there an easy way? I have already set them to one
decimal point in the table design but this seems to have no effect when
they are calculated....
[Staff_Pupil] = [Pupils] / [Staff] and [Adult_Pupil] = [Pupils] /
[TotalAdults]
Any help appreciated
Cheers