The Screenshot shows a combobox and two textboxes in Design View.
Only one table is involved, namely, tblCategory.
tblCategory contains: CategoryID (autonum), Category, CategoryDesc.
The unbound combobox contains two columns: CategoryID (hidden) and Category.
The unbound combobox allows a user to select a Category.
When the user select, say, “Access 2007”, I want the two textboxes on the right to display the corresponding Category and CategoryDesc. That requires the synchronization between the combobox and the 2 textboxes.
The 2nd screenshot below shows no synchronization.
Question: How to synchronize the combobox and the 2 textboxes?
Thanks.
Armstrong
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Synchronize between ComboBox & TextBox
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Synchronize between ComboBox & TextBox
- This topic has 6 replies, 3 voices, and was last updated 15 years, 9 months ago.
AuthorTopicWSarmsys
AskWoody LoungerJuly 29, 2009 at 10:32 pm #461553Viewing 1 reply threadAuthorReplies-
WSpatt
AskWoody LoungerJuly 29, 2009 at 11:12 pm #1171537The Screenshot shows a combobox and two textboxes in Design View.
Only one table is involved, namely, tblCategory.
tblCategory contains: CategoryID (autonum), Category, CategoryDesc.
The unbound combobox contains two columns: CategoryID (hidden) and Category.
The unbound combobox allows a user to select a Category.
When the user select, say, “Access 2007”, I want the two textboxes on the right to display the corresponding Category and CategoryDesc. That requires the synchronization between the combobox and the 2 textboxes.
The 2nd screenshot below shows no synchronization.
Question: How to synchronize the combobox and the 2 textboxes?
Thanks.
ArmstrongI dont understand why you are doing this.
You have tblCategory as the source of the form and the source of the combo box as well.Is this form meant to be a maintenance form to input Categories? If so, there’s no need for the combo box.
I must have missed something here.
-
WSarmsys
AskWoody LoungerJuly 29, 2009 at 11:43 pm #1171540I dont understand why you are doing this.
You have tblCategory as the source of the form and the source of the combo box as well.Is this form meant to be a maintenance form to input Categories? If so, there’s no need for the combo box.
I must have missed something here.
Patt,
The whole picture is to allow users to select a Category. Then all books with the same Category, say Access 2007, will be displayed.
It may seem redundant to you.
Explanation:
1. Some categories are quite cryptic such as SC. So a long description is required. For example, SC stands for Supreme Court.
2. By displaying Category alone won’t display the whole possible list of categories for users to select. The combobox offers the convenience to show all categories.
Hope this could explain my design concept.
Armstrong -
WSpatt
AskWoody LoungerJuly 30, 2009 at 12:11 am #1171542Patt,
The whole picture is to allow users to select a Category. Then all books with the same Category, say Access 2007, will be displayed.
It may seem redundant to you.
Explanation:
1. Some categories are quite cryptic such as SC. So a long description is required. For example, SC stands for Supreme Court.
2. By displaying Category alone won’t display the whole possible list of categories for users to select. The combobox offers the convenience to show all categories.
Hope this could explain my design concept.
ArmstrongI still dont understand what you want, but why dont you put all 3 fields in the combo box with the CategoryID as invisble.
In the AfterUpdate event of the combo box you would populate the text fields viz:
TextShort = CmbCategory.Column(1)
TextLong = CmbCategory.Column(2)
-
-
WSHansV
AskWoody LoungerJuly 30, 2009 at 1:02 am #1171546Since the combo box already displays the Category field, you don’t need a text box that also displays it. To display the CategoryDesc, you could add this field to the Row Source of the combo box, as suggested by patt, and create a text box with control source =cmbCategory.Column(2) where cmbCategory is the name of the combo box. You don’t need to use code for this.
Note: columns of a combo box or list box are numbered starting at 0, so Column(0) is the first column, Column(1) is the second column etc.
-
WSarmsys
AskWoody LoungerJuly 30, 2009 at 1:45 am #1171548Since the combo box already displays the Category field, you don’t need a text box that also displays it. To display the CategoryDesc, you could add this field to the Row Source of the combo box, as suggested by patt, and create a text box with control source =cmbCategory.Column(2) where cmbCategory is the name of the combo box. You don’t need to use code for this.
Note: columns of a combo box or list box are numbered starting at 0, so Column(0) is the first column, Column(1) is the second column etc.
Hi Hans,
This exercise is merely help me grasp the technique to sychronize multiple textboxes in a form.
The reason behind the textboxes bound to the fields is editabilty.
By the combox selection, the user may not like how the Category and/or CategoryDesc was entered. So now the user has a chance to change it.Let me rephrase the question:
If a user select a different Category in the combobox, the 2 textboxes should be updated accordingly. How? Should I use requery? It doesn’t seem to work. The main question here, after selecting another Category, the 2 textboxes remain the same. To be precise, it always shows the content of the 1st record in the table. The cursor/record point didn’t change.Armstrong
-
WSHansV
AskWoody Lounger
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
38 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
47 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
54 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
10 hours, 36 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 hour, 1 minute ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
13 hours, 17 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
5 hours, 32 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 hour, 13 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
7 hours, 29 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
22 hours, 46 minutes ago -
Sometimes I wonder about these bots
by
Susan Bradley
19 hours, 3 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
9 hours, 6 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 12 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 12 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
21 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 15 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 15 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 4 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 day, 23 hours ago -
0Patch, where to begin
by
cassel23
1 day, 17 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 13 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
2 days, 21 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 12 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 day, 23 hours ago -
Installer program can’t read my registry
by
Peobody
16 hours, 39 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 10 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
2 days, 17 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 8 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
3 days, 17 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.