Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Copy To Clipboard    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Copy to Clipboard
John Rutter 
       
2 years ago
Hi Guys, i have got this to work well on my forms, except when i use a continuous form to copy an email address.  The button shows on a NewRecord which is obviously blank.  If a user clicks the copy button, this then generates an error message as the EmailAddress in the NewRecord can not get focus.  Is it possible to hide the button, or stop the 'Click Event' if there is no data in the EmailAddress, and then show it when there is data there? i have tried a few things with 'Is Null', but this just hides the button in both cases.  Any help will be welcomed.
Kevin Robertson  @Reply  
          
2 years ago
You can prevent the button executing the code on a new record with code like this:

    If Not Me.NewRecord Then
        MsgBox "Hello world"
    End If
John Rutter OP  @Reply  
       
2 years ago
Thanks Kevin a bit of lateral thinking, all working fine now you have put me on the right path.  Your help is greatly appreciated
Kind regards

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Copy To Clipboard.
 

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 2:36:10 AM. PLT: 1s