I am trying to perform a calculation within an IF then Statement. The difference is I need Access to remember a values to complete the calculations prior to setting the final answer. I think this is basic however I am a novice and can't seem to get it to work. Can someone help make this work?
Code:
If [Forms]![Jobentryfrm]![StyleJobCurrentSub]![Assembly] = 39 Then
BL = ([Forms]![Jobentryfrm]![Height] * 2) + ([Forms]![Jobentryfrm]![Length] * 2) + 8
bw = [Forms]![Jobentryfrm]![Length] + [Forms]![Jobentryfrm]![Width] + 12
nl = Bw / 42
tf = nl * BL / 12
[Forms]![Jobentryfrm]![StyleJobCurrentSub]![TotalDim] = tf * 1.1
Else
[Forms]![Jobentryfrm]![StyleJobCurrentSub]![TotalDim] = Round([Forms]![Jobentryfrm]![StyleJobCurrentSub]![ActualDim] + [Forms]![Jobentryfrm]![StyleJobCurrentSub]![Curf], 2)
End If