25 minutes ago: Please note that the webserver will soon get its weekly reboot at 4:00 am Eastern Time. You may continue to use the site as normal, but you will be logged off at that time. You should be able to log right back on immediately, however. If you are in the process of placing an order, please make sure to complete it as quickly as possible, or come back after the reboot. Thank you. Sorry for any inconvenience.  Dismiss
 
Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Form Expressions
Teri Bridges 
    
4 years ago
I have two tables related by courseID one is for the course details and the others is to log issues for the course.

I then have two forms one with all the course details and one for the course issues.

I put a check box in the courseDetails form that opens the issue log when selected what I would like is for the course ID to come in from the course details form when the check box is selected.

In the form for issues I used the following expression =[Forms]![frmCourseDetails]![courseID] the field populates with the correct course ID, but I get an error when I try to save
   cannot find a record in the table "tblCourse" with key matching fields courseID.

there is a courseID in both tables. Am I applying the expression wrong?
Teri Bridges OP  @Reply  
    
4 years ago
I can get it to work without the error but the Course ID Topic ID and Course name do not come over to the table. I will post a photo. Maybe an expression is not the answer. Just when I think I am learning...LOL
Teri Bridges OP  @Reply  
    
4 years ago

Kevin Robertson  @Reply  
          
4 years ago
Your expressions are in the control source. Try moving them to the Default Value instead.
Also, when referring to a value on a subform you have to use .Form in the expression:

=Forms!ParentFormName!SubformName.Form!FieldName
Teri Bridges OP  @Reply  
    
4 years ago
Thank you so much!!! it worked!!!!!

=[Forms]![frmCourseDetails]![frmLessonEventsSubform.Form]![TopicEventID]

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

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: 8/30/2026 3:55:03 AM. PLT: 0s