Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Copy To Clipboard < Parse Lines | On Unload >
Back to Copy To Clipboard    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Not editable records
Eduardo Benaim 
     
2 years ago
Trying to use
AmtXfer.SetFocus
DoCmd.RunCommand acCmdCopy

I get an error because AmtXfer is a non Editable Calculated Field.
All I want to do is to Copy it to the Clipboard.

The only way I could do this was by copying the contents of this field into an editable field. (not very elegant)

ClipBox = AmtXfer  ' ClipBox is a Field in the Form
ClipBox.SetFocus
DoCmd.RunCommand acCmdCopy
Me.ClipBox = ""
AmtXfer.SetFocus

Is there a better way to do this?
Kevin Robertson  @Reply  
          
2 years ago
What error are you getting when you try to perform the Copy operation?
Is the field disabled?

I just did a test on two calculated fields, one calculated in a query and one calculated on the form. Both worked fine.
Eduardo Benaim OP  @Reply  
     
2 years ago
I am looking at the Account Balances v1.0 Template that Richard published.
Eduardo Benaim OP  @Reply  
     
2 years ago
Here is the error
Eduardo Benaim OP  @Reply  
     
2 years ago

Eduardo Benaim OP  @Reply  
     
2 years ago
Needed is AmtXfer in the AccountQ
Eduardo Benaim OP  @Reply  
     
2 years ago
The field is not locked but it can not be edited because it is a calculated field. So it says.
Eduardo Benaim OP  @Reply  
     
2 years ago
'------------------------------------'------------------------------------
I was able to modify Richards sub to include the DoCmd.RunCommand acCmdCopy and it works
'------------------------------------'------------------------------------
Public Function SelectAllCopyText()

    Dim C As Control
    
    Set C = Screen.ActiveControl
    If IsNull(C.Value) Then Exit Function
    C.SelStart = 0
    C.SelLength = Len(C.Text)
    Set C = Nothing
    DoCmd.RunCommand acCmdCopy
    
End Function
'------------------------------------'------------------------------------

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/14/2025 5:36:18 PM. PLT: 1s