Computer Learning Zone CLZ Access Excel Word Windows

Every artist was at first an amateur.

-Ralph W. Emerson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Access 202    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 

Richard Rost 

17 years ago
Accessing the value of a field on a SUBFORM is tricky. Normally, getting a value off just one form is:

=Forms!FormNameF!FieldName

If you're dealing with a SUBFORM then it becomes:

=Forms!FormNameF!SubFormName.Form!FieldName

You can put this value in the Default Value property of your new form, OR it might be easier to go the other way. In the VBA code for the button that opens this new form, you might just want to set the value manually in the new form after opening it.

DoCmd.OpenForm "NewFormNameF"
Forms!NewFormNameF!FieldName = SomeValueOrField

If the button is IN the subform of which you speak, then you wouldn't need to use any crazy notation. I cover this when we get into the 300-level series of Access courses and start learning VBA.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Access 202.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/7/2026 11:57:03 AM. PLT: 1s