G
Guest
I'm struggling with an if, then statement. I have a combo box [status] on a
form. When the user selects "complete" a message box reminds the user to go
to another combo box [savings] and select the appropriate answer. That
second box is not required (and thus is null) until the status box is marked
complete. I need to force the user to select an answer from the savings
combo box if status is complete. I have not had enough caffeine so I can't
spot my problem, though I'm sure it is not a difficult line of code, and I
only know enough VB to be dangerous
The logic (or illogic
I'm using is ... if status = complete, then
savings cannot be null.
The code below returns a function call error, that the left hand side must
return a variant or object.
If (Me.Status) = complete Then IsNull(Me.Savings / Avoidance) = False
End If
form. When the user selects "complete" a message box reminds the user to go
to another combo box [savings] and select the appropriate answer. That
second box is not required (and thus is null) until the status box is marked
complete. I need to force the user to select an answer from the savings
combo box if status is complete. I have not had enough caffeine so I can't
spot my problem, though I'm sure it is not a difficult line of code, and I
only know enough VB to be dangerous

The logic (or illogic

savings cannot be null.
The code below returns a function call error, that the left hand side must
return a variant or object.
If (Me.Status) = complete Then IsNull(Me.Savings / Avoidance) = False
End If