Your file did not get properly attached - errors as "Invalid".
Agree that everything looks good and only issue may be accented letter which I most likely cannot resolve because my system is English.
Your file did not get properly attached - errors as "Invalid".
Agree that everything looks good and only issue may be accented letter which I most likely cannot resolve because my system is English.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Attachment 40327
Update, I dont know what does this mean
I already tried without the accented words, and the result is the same
The test is executing successfully for me. I suspect you need to set all the values appropriate to each selection. In other words, not just the ones you want visible, but the ones you want hidden. Behind the combo I set
equal to true in the If and false in the Else. Changing selections changed the visibility as expected.
Me.ClienteDesde.Visible
The test is executing successfully for me. I suspect you need to set all the values appropriate to each selection. In other words, not just the ones you want visible, but the ones you want hidden. Behind the combo I set
equal to true in the If and false in the Else. Changing selections changed the visibility as expected.
Me.ClienteDesde.Visible
But in the code is set not only the ones I want visible (me.xxxxxx.visible = true) but also the ones to be hidden (me.xxxxx.visible = false)
There are values that appear in both and values that should appear only when a specific value in TipoPessoa Combo Box is selected
Can you send the db as altered by you
I know what happen. Copy Paste done wrong. I don't believe it. ahahahah
The code is running fine, it's your values. You probably have copy/paste issues. Here are some lines from the If, but sorted:
Me.CódigoPostal1.Visible = False Me.CódigoPostal1.Visible = True Me.CódigoPostal2.Visible = False Me.CódigoPostal2.Visible = True Me.DataNascimento.Visible = False Me.DataNascimento.Visible = True
See the problem? You're setting the same fields one way and then the other, so you'll end up with whatever ran last.
However now it does not give me PessoaJurídica
Ok, the problem is that when I pass through the clients it does not auto run in order to see only what is suppose to
Not sure what you mean. The "Else" code is executing, you just have to make sure you set every control's visibility as desired. If something was visible for the first selection, it won't hide for the second selection unless you tell it to.