Afterupdate

  • Thread starter Thread starter hermie
  • Start date Start date
H

hermie

Hello

I put this simple event in my afterupdate but it not works?
I got error message object required?

I tried:

Private Sub cbotarea_AfterUpdate()
Me.cbotarea.Column(2).value = Me.Txtvalor.value
End Sub

I also tried:

Private Sub cbotarea_AfterUpdate()
Me.cbotarea.Column(2) = Me.Txtvalor
End Sub

What goes wrong here?

Herman
 
You can't update combobox values that way. The Column property is read-only.
 
Hi Douglas

Mmm I thought it was posible, but is there another way to do this?

Herman
 
Presumably your combobox is based on data in a table. Update the table row,
and do a requery on your combobox.
 

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

Back
Top