Evaluate a string

  • Thread starter Thread starter Rudy W.
  • Start date Start date
R

Rudy W.

Is there a function (or methode) in VBA for Access that
evaluates a string?

e.g..
Following code:

Dim strExpression as String
....
strExpression = "Not (.chkBox1 Or IsNull(.cboBox2))"
....

With Forms("frmInputScreen")
If Evaluate(strExpression) Then
...
EndIf
End With

should have the same result as this one:

With Forms("frmInputScreen")
If Not (.chkBox1 Or IsNull(.cboBox2)) Then
...
EndIf
End With

Does an "Evaluate()" function exist?

Thanks
 
Back
Top