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 
OnClick Event Breaks Field
John Arnett 
    
2 years ago
I added an On-Click event to a form and it broke one of the fields in the form.  The form is based on a table of work locations and in that table, the country field is a combo box that is connected to another table of a list of countries.  The On-Click is sorting out the closed work locations and it is functioning properly, but the country field now displays #NAME? when the On-Click event is triggered.
This is the event......Me.RecordSource = "Select * FROM PropertyInfoTbl WHERE SiteClosed=True".

Any ideas would be very much appreciated.
John
Sami Shamma  @Reply  
             
2 years ago
Check the Name property of "Country Field." It is almost guaranteed to be misspelled.
Kevin Robertson  @Reply  
           
2 years ago
Does PropertyInfoTbl have the field?
Screenshots???
John Arnett OP  @Reply  
    
2 years ago

John Arnett OP  @Reply  
    
2 years ago

John Arnett OP  @Reply  
    
2 years ago

John Arnett OP  @Reply  
    
2 years ago
I appreciate your comments.  I checked the CountryName spelling everywhere it exists but I didn't see anything misspelled.  I wasn't really clear on what "Name Property" means though.

I also checked the PropertyInfoTbl and you are correct, the CountryName field does not exist there.  The PropertyInfoTbl and the CountryTbl are connected via the primary key of the CountryTbl so the field in the PropertyInfoTbl is actually "CountryID".  

Sami Shamma  @Reply  
             
2 years ago
What is the record source for Form "PropertyListFrm"?
John Arnett OP  @Reply  
    
2 years ago
The record source for that form is the PropertyInfoTbl.
Sami Shamma  @Reply  
             
2 years ago
There is your problem.  "ContryName" is not on that table. you need to create a query that will bring the ContryName or use a combo box.

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: 4/30/2026 1:49:26 PM. PLT: 0s