ok, here we go, here's my function
Code:
Option Compare Database
Option Explicit
Public Function sch(cr As Integer, h As Integer, pr As Integer) As Integer
Dim x As Integer
x = (((cr * h * (6 - pr)) / 1000) / (((cr * 3 * 5) / 1000) + ((h * 1000 * 5) / 1000) + (((6 - pr) * 1000 * 3) / 1000))) * 1000
sch = x
End Function
.
and me trying to call in on the form
Code:
Option Compare Database
Option Explicit
Private Sub Form_Load()
Dim cr As Integer
Dim h As Integer
Dim pr As Integer
txtSchInd.Value = sch(Me.txtCriticalID, Me.txthealthID, Me.txtPriorityID)
End Sub
I think I did it but it has the same value for all the values of txtschind on my continuous form? should I be looking somehow and hows this looking?