So you will have to write 36 SQL update statements.
OR you might think about writing a UDF with arguments. Something like
(AIR CODE)
Code:
Sub UpdateInterval(intInterval As Integer, intRiskMatrix As Integer)
CurrentDb.Execute "UPDATE [tbl_inspectioninterval] SET [Iinterval] = " & intInterval & " WHERE [RiskMatrix] = " & intRiskMatrix
End Sub
To update interval, you would use:
Code:
Private Sub Risk1CT_AfterUpdate()
Call UpdateInterval(Risk1CT, 1)
End Sub
For another "colored box" (you have a control there, right?), you would use:
Code:
Private Sub Risk2CT_AfterUpdate()
Call UpdateInterval(Risk2CT, 2)
End Sub
Would do this 36 times.
Be warned, "Interval" is a reserved word in Access - shouldn't be used for object names.