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 
Error message for missing info
Cody Millette 
    
2 years ago
Good Morning Rich,

     I have been trying to figure how to create a helpful error message prompt for missing information, in particular when mapping an address for a customer.

In my form currently I have a "click to map" button/marco that will open up to google maps and map the address information that is entered in the address section.

I have already created an error message form that states "address information is missing, please enter information and try again".

What I am struggling with is the coding in the VBA because I don't know it very well

I just want the code to check if the address information is present ...

if yes -> go and map it.

if no  -> stop "click to map" macro and start error message macro requesting user to double check address information.

Thank you in advance for your help.
Cody Millette OP  @Reply  
    
2 years ago

Kevin Robertson  @Reply  
          
2 years ago
Give this a go:

If IsNull(Address) Or IsNull(City) Or IsNull(State) Or IsNull(ZIP) Or IsNull(Country) Then
    MsgBox "Missing Data"
    Exit Sub
End If
Kevin Robertson  @Reply  
          
2 years ago
Cody Millette OP  @Reply  
    
2 years ago
Thank you Kevin for the help!!!
Kevin Robertson  @Reply  
          
2 years ago
You're welcome.

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/7/2026 8:18:28 AM. PLT: 1s