Evaluate a string

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top