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 
need a new trick
Juan C Rivera 
            
5 years ago
Hi Everyone need a new trick I have been checking fields one at a time and stopping print if a filed is missing.  Well someone asked if I could validate all the fields so they can fix the errors and not have to hit print several times.  My thought is you may miss one field not 3 or 4...

Private Function RdyToSend() As Boolean
      If IsNull([Preparer]) Then
         MsgBox "Preparer name missing, Must Have Prior to Printing"
         RdyToSend = False
           Exit Function
      ElseIf IsNull([Phone]) Then
         MsgBox "Phone Number is missing, Must Have Prior to Printing"
         RdyToSend = False
           Exit Function
      ElseIf IsNull([Email]) Then
        MsgBox "Email missing, Must Have Prior to Printing"
        RdyToSend = False
          Exit Function
      ElseIf IsNull([Code]) Then
        MsgBox "Code missing, Must Have Prior to Printing"
        RdyToSend = False
          Exit Function
      ElseIf IsNull([DatebyPreparer]) Then
        MsgBox "Date missing, Must Have Prior to Printing"
        RdyToSend = False
          Exit Function
      End If
      
      ' If all checks are good then rdytosend is True
      RdyToSend = True
      
End Function

I have done this for a very long time and cant think of a way around it does anyone have a trick up the sleeve?
V/r
Juan
Richard Rost  @Reply  
          
5 years ago
Loop through the controls with a For Each statement like I show in Developer 22. Which you have. ;)
Juan C Rivera OP  @Reply  
            
5 years ago
Big Thanks

V/r
Juan
Alex Hedley  @Reply  
           
5 years ago
Also an old Tip I created: Check for Empty/Null Controls
Juan C Rivera OP  @Reply  
            
5 years ago
Alex thanks I think I will use this It screams out fill me in...  LOL  I did do Developer 22 and put a progress bar way cool but if you try to move off I like to change the color and let them know over here fill me in.

V/r
Juan

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/8/2026 11:54:25 PM. PLT: 0s