Hi sure this is easy if you know how! I have an unbound combo box (Combo9) on a form Fm_Data_Entry. I use a click button to open a pop up form from fm_data_entry which adds in another value to the source table of the unbound combo box, however, i can’t get it to update yhe combo again with the new value without actually closing the fm_data_entry and opening again. How can I get the unbound combo box to update the new table value without closing the form down?? Thanks folks.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Updating Unbound Combo Box based on pop up form
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Updating Unbound Combo Box based on pop up form
- This topic has 5 replies, 2 voices, and was last updated 13 years, 8 months ago.
Viewing 2 reply threadsAuthorReplies-
WSjohnhutchison
AskWoody Lounger -
WSM.Robb
AskWoody Lounger
-
-
WSjohnhutchison
AskWoody LoungerSeptember 28, 2011 at 7:47 am #1299969The form has an On Activate event.
Using the On Enter event will work I think, but it is requerying more often than needed.
-
WSM.Robb
AskWoody LoungerSeptember 28, 2011 at 8:57 am #1299977Hi John, thanks so much that’s working beautifully now. Can you also help with a similar issue –
I have a table detailing actions – simply an autonumber and listing possible actions people might wish to do with the db (e.g. open table, open form, run query, run report etc.). I want to attach this table to an unbound combo box on a switchboard form to allow people various options. I’ve got the combo box set up but not sure how I get the various actions to perform once the combo box listing is selected. think I need some sort of if statement on the AFter update box but VBAs not my strong point. Can you give me some pointers. It would be like
If Combo2 value = 1, then open form1
If Combo2 value = 2 then run report1 etc.Thanks for your help!
blitzy
-
-
WSjohnhutchison
AskWoody LoungerSeptember 28, 2011 at 4:52 pm #1300051I prefer to use a list box for that job, so users can see all the options, but a combo would work.
I would not use the After Update event, however, because they event will fire too easily. People will trigger actions without meaning too.
I would put a command button button next to the combo, so they need to take a deliberate action. But the choice is up to you..the code is the same wherever you put it.In the table you use, I also add an extra field. One field displays the action in plain english, the other has the actual name of the object you want to use: the table, form, report etc. My goal is that I should be able to add new items to the list, and have them work without needing to modify the code.
So you also need to be able tell what type of action is needed, from something in the table. If you use a consistent naming convention, you could tell the action by the name of the object.
e.g. table names begin with tbl, so if the first letters of the name are tbl, the action is to open a table. Query names begin with qry so if the first three letters of the object are qry, the action is to run a query.If you don’t use a consistent naming method, you would need another field to describe the action to be taken.
So my code would look something like this.
Code:Dim strObject as string If not isnull(me.combo2) then strObject = me.combo2 Select case left(strObject,3) Case “tbl” docmd.opentable strObject Case “qry” docmd.openquery strObject Case “frm” docmd.openForm strObject Case “rpt” docmd.openReport strObject, , acPreview Case else msgbox “I don’t know what todo.”,vbInformation end select else msgbox “Select an item from the list”, vbInformation end if
Viewing 2 reply threads -

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
-
Windows Update orchestration platform to update all software
by
Alex5723
44 minutes ago -
May preview updates
by
Susan Bradley
2 hours, 22 minutes ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 hours, 30 minutes ago -
Just got this pop-up page while browsing
by
Alex5723
25 minutes ago -
KB5058379 / KB 5061768 Failures
by
crown
12 hours, 52 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
15 hours, 32 minutes ago -
At last – installation of 24H2
by
Botswana12
16 hours, 16 minutes ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
5 hours, 54 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
1 day, 4 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
21 hours, 48 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
1 day, 17 hours ago -
Another test post
by
gtd12345
1 day, 18 hours ago -
Connect to someone else computer
by
wadeer
1 day, 12 hours ago -
Limit on User names?
by
CWBillow
1 day, 15 hours ago -
Choose the right apps for traveling
by
Peter Deegan
1 day, 5 hours ago -
BitLocker rears its head
by
Susan Bradley
13 hours, 29 minutes ago -
Who are you? (2025 edition)
by
Will Fastie
12 hours, 25 minutes ago -
AskWoody at the computer museum, round two
by
Will Fastie
1 day, 7 hours ago -
A smarter, simpler Firefox address bar
by
Alex5723
2 days, 4 hours ago -
Woody
by
Scott
2 days, 13 hours ago -
24H2 has suppressed my favoured spider
by
Davidhs
13 hours, 5 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
3 days, 3 hours ago -
MS Office 365 Home on MAC
by
MickIver
2 days, 21 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
3 days, 18 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
12 hours, 50 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 12 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 12 hours ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
3 days, 16 hours ago -
Migrate off MS365 to Apple Products
by
dmt_3904
3 days, 17 hours ago -
Login screen icon
by
CWBillow
3 days, 7 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.