if cod = Combinação0 then

F

Frank Dulk

People, that dawn I was more than 1 hour trying to kill a charade and I was
not capable to understand what it happens... will it be that anybody
explains to me?

In a form, I have a combination box that after having selected, it stores
the code for subsequent use, in other words, I selected a thing and it was
stored " 4 ", that I proved through a MsgBox Combinação0, that me retonou
that I mentioned above... Everything well... in this same form, I created a
button to execute a command, and in this button I used a code with an if
with the intention of testing the code it was same the one of the
combination box, however if I use:
if cod = Combinação0 then..
the command is not executed, but if I place
if cod = 4 then...
there he executes correctly!
Is my doubt... if Combinação0 = 4 then because it doesn't work with the
variable, only with the number????
 

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