This is DRIVING me nuts! For some reason, last few months, I can’t figure this out. Whenever I try to use a Forms collection (Forms!frmxxx!xxx), I keep on getting an error message saying that it cannot find the form! I checked everything, the names is right, etc. Even if I follow examples from others, it still doesn’t work. Please help.
![]() |
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 |
-
Forms Collection issue! (Access 2000 SP2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Forms Collection issue! (Access 2000 SP2)
- This topic has 8 replies, 4 voices, and was last updated 22 years, 8 months ago.
AuthorTopicWSRainyCity4
AskWoody LoungerSeptember 11, 2002 at 3:46 pm #376339Viewing 0 reply threadsAuthorReplies-
WSpbricker
AskWoody Lounger -
WSRainyCity4
AskWoody LoungerSeptember 11, 2002 at 3:59 pm #615957That was the oddest thing. I knew that subform has to be open for this to work. When I open the main form, I see the whole thing (Main form and subforms), so I assume it is “open”? Or is it defined differently? Can a subform that I can see on the main form be considered “closed”?
Brent
-
WSMarkLiquorman
AskWoody LoungerSeptember 11, 2002 at 4:05 pm #615959A subform is NOT in the forms collection! Is is not considered an open form. To access a subform, you must reference it via the subform control name on the mainform (which may or may not be the same as the subform’s name). Something like this:
Forms!MainformName!subformControlname.Form!someControlName -
WSRainyCity4
AskWoody Lounger -
WSMarkLiquorman
AskWoody LoungerSeptember 11, 2002 at 8:12 pm #616073Let’s use some examples. Let’s say you have 2 forms in your database window: frmCustomers and frmPhones. Form frmPhones contains a textbox named txtPhoneNo. If you look on frmCustomers, you will see a subform control. That control has a Name property (which may be something like “subPhones”) and a SourceObject property (which is the name of the actual form it contains, frmPhones). If you want to reference the Phone# on the current row in the subform, the complete syntax would be:
Forms!frmCustomers!subPhones.Form!txtPhoneNoWhich essentially says “Look in the Forms collection, find form frmCustomers, and on it find the control subPhones, then look at the Form it contains and find control txtPhoneNo”.
-
WScharlotte
AskWoody LoungerSeptember 12, 2002 at 1:44 am #616162 -
WSMarkLiquorman
AskWoody LoungerSeptember 12, 2002 at 12:47 pm #616235Yeah, I know that .Form is the default property for the subform control, and that I really don’t have to use. However, I use still use it myself because I find it makes the code easier to read, and I use it when explaining the concept to other people because I think it helps them understand the relationship of the form within the subform control.
-
WScharlotte
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
-
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
50 minutes ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
52 minutes ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
4 hours, 2 minutes ago -
Out of band for Windows 10
by
Susan Bradley
5 hours, 35 minutes ago -
Giving UniGetUi a test run.
by
RetiredGeek
12 hours, 32 minutes ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
20 hours, 10 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
18 hours, 8 minutes ago -
Auto Time Zone Adjustment
by
wadeer
1 day ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
22 hours, 19 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
2 hours, 54 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
13 hours, 50 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
18 hours, 8 minutes ago -
Apps included with macOS
by
Will Fastie
17 hours, 45 minutes ago -
Xfinity home internet
by
MrJimPhelps
17 hours, 40 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
17 hours, 38 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 21 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
2 days, 1 hour ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
1 day, 4 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
21 hours, 19 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
2 days, 18 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
2 days, 8 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
6 hours, 31 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
2 days, 13 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 20 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
22 hours, 50 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
18 hours, 40 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
2 days, 16 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 20 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
2 days, 4 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.