K
Kclark
I have inherited an access 97 application. It has various
problems that I am trying to fix. The following code is
causing some problems when bad data is stored in the
Glucose field. instead of a numeric value Note: is stored
in it, therefore I receive a type mismatch error. Any
ideas on a solution would be greatly appreciated.
Do Until myLabTest.EOF
If GlycohemoglobinValue = False Then
If Right(myLabTest!GLYHGB, 4) > 9 Or Right
(myLabTest!GLUCOSE, 3) >= 140 Then
GlycohemoglobinValue = True
End If
End If
myLabTest.MoveNext
Loop
problems that I am trying to fix. The following code is
causing some problems when bad data is stored in the
Glucose field. instead of a numeric value Note: is stored
in it, therefore I receive a type mismatch error. Any
ideas on a solution would be greatly appreciated.
Do Until myLabTest.EOF
If GlycohemoglobinValue = False Then
If Right(myLabTest!GLYHGB, 4) > 9 Or Right
(myLabTest!GLUCOSE, 3) >= 140 Then
GlycohemoglobinValue = True
End If
End If
myLabTest.MoveNext
Loop