I'm using the following piece of code and getting a compile error.
If Me.[LatestNeg]![latestnegtest] < Me.LatestPos![latestpostest] Then Me.BaselineNeg.Value = ""
ElseIf IsNull(Me.BaselineNeg) And Me.LatestNeg!latestnegtest > Me.LatestPos![latestpostest] Then
Me.BaselineNeg = Me.LatestNeg![latestnegtest]
End If
It's not liking the code right after 'And'. I need both of those conditions to be true in order for it to run.
Any help is greatly appreciated!
If Me.[LatestNeg]![latestnegtest] < Me.LatestPos![latestpostest] Then Me.BaselineNeg.Value = ""
ElseIf IsNull(Me.BaselineNeg) And Me.LatestNeg!latestnegtest > Me.LatestPos![latestpostest] Then
Me.BaselineNeg = Me.LatestNeg![latestnegtest]
End If
It's not liking the code right after 'And'. I need both of those conditions to be true in order for it to run.
Any help is greatly appreciated!