Display a combobox depending on another combobox

V

Veli Izzet

Hi all,

I want to display combo29 if combo22 has a certain value.

Private Sub Combo22_AfterUpdate(Cancel As Integer)
If Me.Combo22 = 3 Then
Me.Combo29.Visible = True
Else
Me.Combo29.Visible = False
End If

Gives error, any help?
 
G

Guest

What is the error?
Also it doesn't make sense, the after update doesn't have cancel in it, only
the before update

'AfterUpdate(Cancel As Integer)

So if you wrote it, so remove it, and then try it running again
 
V

Veli Izzet

Thanks,

It was left from the copy-paste operation between the before_update &
after_update, the problem was this syntax
 

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