It’s getting a little late and I’ve gone round and round on this, can someone please give a weary clueless guy a clue? When I change a value in a field on a subform, I need to requery or refresh the results in a List Box on the main form. Now I assume it would trigger on the “on change event” of the subform field but for the life of me I can’t come up with the proper syntax. i.e Forms!frmPayment!lstContr.Refresh Thanks in advance.
![]() |
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 |
-
Refresh/Requery list box on subform change (Access XP)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Refresh/Requery list box on subform change (Access XP)
- This topic has 4 replies, 2 voices, and was last updated 21 years, 11 months ago.
AuthorTopicWSBrian Swann
AskWoody LoungerJune 15, 2003 at 1:54 am #389081Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerJune 15, 2003 at 1:59 am #685817Don’t use OnChange because that would requery or refresh the listbox with every keystroke. If what you’re doing in the subform will actually affect the records populating the listbox, use Requery, not refresh. Use the AfterUpdate event of the subform to requery your listbox. The syntax would be :
Parent!lstContr.Requery
-
WSBrian Swann
AskWoody LoungerJune 15, 2003 at 2:49 am #685818Thanks very much for your quick reply. I’m almost there, but the list box still doesn’t refresh. I’m thinking it has something to do with the fact the list is based on a query filtered by a combo box “cboDealer” on the Parent form. The list box won’t refresh until I re-select from the combo box.
Essentially, I allow the user to choose a Dealer with outstanding invoices from “cboDealer”, “lstContr” is a list of unpaid contract balances for that dealer, “On Click” in the list box adds a record to a table and populates the subform. The user has the option to change the “txtPayAmt” on the subform to reflect over and under payments, and I’d like to refresh the “lstContr” to reflect that. Sounds a little convoluted, but I can’t think of another way to do it. -
WScharlotte
AskWoody LoungerJune 15, 2003 at 3:53 am #685825Do I understand that you select a dealer from the combobox, which then somehow populates the listbox with unpaid contract balances for that dealer? How is the listbox repopulated at that point? Then the subform gets populated by something that happens in the listbox. What exactly is going on there, or do you mean that the subform is linked to the parent form on the value of the listbox? Then does changing something in the subform mean that a record in the subform should no longer show up in the listbox? Trying to make them interdependent is going to be difficult to make work properly. The normal course of things is for the subform to be dependent on the parent form and its controls, not the other way around, which is what you seem to be trying to do.
-
WSBrian Swann
AskWoody LoungerJune 15, 2003 at 10:28 am #685853Yes when the Dealer is selected in the combo box I requery the listbox which populates with contracts and balances filtered from an underlying query containing calculated balances for each contract. Price – Payments + Adjustments. Then when a contract is selected in the combo box, the on click event Adds a record to the payments table and requerys the list box effectively removing that contract. It’s at that point the user “may” change the payment amount. Over and above the problem accomplishing this, all of this requerying makes for a slow form so I’ve pretty much decided to leave the list box as is and give the user the option of a Requery button on the parent form if they wish to see the updated Contract List. Thanks again for your help.
-
-
-
Viewing 0 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
-
Mozilla Firefox Security Updates! Released late 17th May 2025
by
Alex5723
3 hours, 52 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
45 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
7 hours, 50 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
1 hour, 17 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
17 hours, 40 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
8 hours, 5 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
20 hours, 20 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
12 hours, 36 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
8 hours, 17 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
14 hours, 33 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 2 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
16 hours, 10 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 19 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
3 hours, 44 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
7 hours, 25 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 22 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 22 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 11 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 6 hours ago -
0Patch, where to begin
by
cassel23
2 days ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 20 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 8 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 4 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 19 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 days, 6 hours ago -
Installer program can’t read my registry
by
Peobody
21 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 17 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
3 days ago -
False error message from eMClient
by
WSSebastian42
3 days, 15 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.