imdandman

This should be simple but I can't figure it out.

what's wrong with this statement

Code Block

if type.text = "Workout" then
x = x + 1
else
x = x + 2

where type is a combo box.

I keep getting this error

"Compile error:

Expected: expression"



Re: Visual Basic General IF help

imdandman

Solved.