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, 10 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
-
KB5060842 Issue (Minor)
by
AC641
2 hours, 26 minutes ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
4 hours, 58 minutes ago -
24H2 may not be offered June updates
by
Susan Bradley
5 hours, 7 minutes ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
17 hours, 32 minutes ago -
Turning off OneDrive
by
CWBillow
22 hours, 1 minute ago -
June 2025 updates are out
by
Susan Bradley
52 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
1 day, 8 hours ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
17 hours, 40 minutes ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
1 day, 10 hours ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
1 day, 10 hours ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
1 day, 10 hours ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
1 day, 2 hours ago -
re-install Windows Security
by
CWBillow
1 day, 14 hours ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
1 day, 17 hours ago -
macOS Tahoe 26
by
Alex5723
1 day, 12 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
34 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
1 day, 2 hours ago -
Recommended watching : Mountainhead movie
by
Alex5723
1 day, 3 hours ago -
End of support for Windows 10
by
Old enough to know better
10 hours, 49 minutes ago -
What goes on inside an LLM
by
Michael Covington
21 hours, 27 minutes ago -
The risk of remote access
by
Susan Bradley
4 hours, 40 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
5 hours, 18 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
1 day, 7 hours ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
2 days, 16 hours ago -
EaseUS Partition Master free 19.6
by
Alex5723
1 day, 16 hours ago -
Microsoft : Edge is better than Chrome
by
Alex5723
3 days, 5 hours ago -
The EU launched DNS4EU
by
Alex5723
3 days, 18 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
3 days, 8 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
3 days, 23 hours ago -
Set default size for pasted photo to word
by
Cyn
4 days, 5 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.