Link to home
Start Free TrialLog in
Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScFlag for Zambia

asked on

How to update a second combo from another combo within the subform

I,m getting a mix up here how to update the second combo within the subform in Ms Access from another Combobox.I keep on getting an error:

Private Sub CboManual_AfterUpdate()
Me.Description.Column(1).Value = Me.CboManual.Column(2)
End Sub

Open in new window


User generated image



test.laccdb


Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

So the access columns are multi column comboboxes by default, but you can still have only one value (which it references off of the bound column).

To set the combobox, all you need to do is assign the combobox to the corresponding value.

EG:
Me.Description = Me.CboManual.Column(2)

Open in new window


This is of course assuming that Description's bound column is Column 2 of the cboManual.
Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc

ASKER

To set the combobox, all you need to do is assign the combobox to the corresponding value.

EG:
Me.Description = Me.CboManual.Column(2)

Open in new window

I have tried that it also failed

User generated image
So what is your bound column for the Description?  And what are you passing in?
Ok here is my small database for you to try it.

Regards

test.accdb
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial