I have this code in the after update property of a field on a tabform. I cant seem to get it to work at all and I thinking that this may be due to the fact that the form is a tabform and may not support. Anyone with any ideas please help
jon
jon
Code:
Public Sub update_AfterUpdate()
Me.temp1 = Null
Me.temp2 = Null
Me.[amatdelays] = 0
Me.[IBMdelays] = 0
Dim x As Integer
Dim y As Integer
x = IIf(Me.[qual] <= 4, 1, 2) ' or <=4, depending on what you decide
y = IIf(Me.[GtoGminusqual] <= 63, 5, 7) ' or <=61, depending on what you decide
Select Case (x + y)
Case 6
Me.[GtoGNoDelays] = [GtoGrounded]
Case 8
Me.[temp1] = Me.[GtoGminusqual] - 63
Me.[amatdelays] = Me.[amatdelays] + [temp1]
Me.[GtoGNoDelays] = Me.[GtoGrounded] - [amatdelays]
Case 7
Me.[GtoGNoDelays] = Me.[GtoGminusqual] + 4
Me.[temp2] = Me.[qual] - 4
Me.[IBMdelays] = Me.[IBMdelays] + [temp2]
Case 9
Me.[GtoGNoDelays] = 67
Me.[temp1] = Me.[GtoGminusqual] - 63
Me.[amatdelays] = Me.[amatdelays] + [temp1]
Me.[temp2] = Me.[qual] - 4
Me.[IBMdelays] = Me.[IBMdelays] + [temp2]
End Select
End sub