Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Highlight Row    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
No ID in Detail Section
Monica Jones 
       
18 days ago
I've added this feature before and needed a refresher for a new form when something strange happened. I added the ID to the detail section, it displayed as expected. I copied to the header, cleared the control source, renamed it SelectedID, did the VBA, and on re-open SelectedID is blank. Only AFTER I removed the ID from the Detail section did it work. Any insight on why this might have happened?
Donald Blackwell  @Reply  
       
18 days ago
If selectedid is unbound, in the oncurrent event you would need to set selectedid = id  so that your conditional formatting can compare the two.
Richard Rost  @Reply  
           
18 days ago
Donald is exactly right. Once you clear the Control Source, SelectedID becomes an unbound control. Access has no reason to populate it automatically, so it will be blank until your On Current event assigns it a value:

SelectedID = ID

Also make sure the code is in the form's On Current event, not the ID control's event. The detail-section ID control still needs to remain bound to the record's actual ID field, because that is where the On Current code gets the value to place into SelectedID.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

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: 9/5/2026 6:49:51 PM. PLT: 1s