Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Bang v Dot
John Rutter 
       
2 years ago
Hi Rick
I have a subform in a parent form, which calls another form.  The form when loaded has a textbox which gets it's default value from the subform.
The default value is set to =[Forms]![EntityTestF]![AddressF].[Form]![PostCodeLookup], which works.  I tested this in a normal parent/child form.
However, i am loading the subform, into the parent form by setting the source object, using a button on click command - SubformControl.SourceObject = "AddressF" [with the form named "SubformControl".
Now the default value will not load in the form - #Name? pops up, which tells me it can not find the field.
It would seem i am missing a step on the route, any help would be appreciated.
Kind regards
John
John Rutter OP  @Reply  
       
2 years ago

Richard Rost  @Reply  
          
2 years ago
Are you opening the AddressF after you changed the SourceObject?
John Rutter OP  @Reply  
       
2 years ago
Hi Rick, yes the EmailF loads first as a default, then use the Address button to load the AddressF.
Kevin Robertson  @Reply  
          
2 years ago
What is the name of the Subform object?

Try this syntax:
    Forms!ParentFormName!SubObjectName!FieldName
John Rutter OP  @Reply  
       
2 years ago
Hi Kevin
All works Thank you, i tried a few thinks but kept the .Form at the end.

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

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/10/2026 1:37:36 PM. PLT: 1s