I have a subform which displays multiple records (continuous). On this subform I also have a listbox for displaying data from another table, that is related to the records on the subform. I use a select statement that grabs data based on a field on the subform. This almost works (displays correct data for first detail record). My problem is that this listbox keeps repeating the data related to the first record on the subform. How can I get the listbox to refresh or requery for each detail record?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Subform (97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Subform (97)
- This topic has 6 replies, 4 voices, and was last updated 23 years, 1 month ago.
Viewing 0 reply threadsAuthorReplies-
WSFrancois
AskWoody Lounger -
WSclaudie
AskWoody LoungerApril 3, 2002 at 12:16 am #580087Francois, I tried your solution but it still repeats the data related to the first record. Maybe this isn’t possible with continuous records??? My subform is named frmSubTwo, and it displays continuous records based on one query (works fine). This subform also has a list box named List99, which uses a select statement against a different table (but with a related field). As I mentioned before, the data displayed in this list box is correct for the first record, but this same data displays for all subsequent records on the subform. On the ‘On current’ event of the subform (frmSubTwo) I have the code: Me.List99.Requery
Anything else I should try?Thanks for your help.
-
WSstephan
AskWoody LoungerApril 3, 2002 at 12:30 am #580091I’ve had crazy problems like this in subforms with listboxes and comboboxes not being requeried even though I issue the requery method.
One thing that worked for me was to programmatically set the RecordSource property for the form and/or RowSource property for the control AGAIN just BEFORE having the line of code doing the requery, i.e.,
Me.List99.RowSource = “SELECT whatever, etc., etc.”
Me.List99.RequeryLet me know if this works for you.
Stephan
-
WSclaudie
AskWoody LoungerApril 3, 2002 at 12:41 pm #580195Adding the Select statement before the requery almost worked. Now I still see the data related to the first record, in each list box, but if I click on any field for a particular detail record, all occurrences of the list box change to display the data related to the “clicked” record. This is better, but I was hoping to be able to automatically display data related to each record, right next to that particular record. Apparently the list box is only “pointing” to one piece of data at a time and just repeating itself for each of the continuous records on the form. This is not how I want this form to look. Any other ideas?????
-
WScharlotte
AskWoody LoungerApril 3, 2002 at 1:17 pm #580208You can’t avoid that behavior with a continuous form. Even though it looks like there is a set of controls for each record, there is really only one set so some actions will result in the same information being displayed in all rows. This is particularly true of unbound controls, since they can only be affected by the current record, which is the only one you can actually address.
-
WSclaudie
AskWoody Lounger
-
-
-
-
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
-
24H2 Installer – don’t see ption for non distructive install (Awaiting moderation)
by
JP
1 hour, 50 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
8 hours, 2 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
2 hours, 50 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
36 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
13 hours, 54 minutes ago -
Setting up Windows 11
by
Susan Bradley
1 hour, 5 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
9 hours, 21 minutes ago -
Powershell version?
by
CWBillow
10 hours, 14 minutes ago -
SendTom Toys
by
CWBillow
4 hours, 54 minutes ago -
Add shortcut to taskbar?
by
CWBillow
14 hours, 10 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 6 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 5 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
12 hours, 10 minutes ago -
We live in a simulation
by
Alex5723
1 day, 20 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 7 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 9 hours ago -
Microsoft is killing Authenticator
by
Alex5723
20 hours, 44 minutes ago -
Downloads folder location
by
CWBillow
2 days, 15 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 11 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 6 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 6 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
8 hours, 48 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 5 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 5 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 19 hours ago -
Multiple Partitions?
by
CWBillow
2 days, 20 hours ago -
World Passkey Day 2025
by
Alex5723
16 hours, 21 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 4 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 days, 5 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
4 days, 9 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.