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


Microsoft Access

Avatar of undefined
Last Comment
John Tsioumpris
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo