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 
Copy Text From Box to Box
Thomas Corbett 
     
6 years ago
I am trying to copy text from a populated box on a form to an unpopulated text box on the same form, any ideas?
Richard Rost  @Reply  
          
6 years ago
Well, how are you going about copying it?  You need an Event as a trigger. Is it a button? Is it when the value in the box changes? Is it when the form loads? I see that you're an Expert level student, so you haven't gotten into AfterUpdate events yet in the Developer classes, but that's what I would use.
Thomas Corbett OP  @Reply  
     
6 years ago
Hi Richard, I have a populated text box that I want to click on and copy and paste it contents to another text box on the same form so the event is on click.

Thanks

Tom
Richard Rost  @Reply  
          
6 years ago
Is the value already in the field when you click on it? Or do you want to type and then after you're done typing have that value copied? The reason I ask is because unless that value is in the field when the form opens (or when you move from record to record) then you won't be able to access it OnClick. You would have to leave the box (Focus) and then go back to it. It's tricky.
Thomas Corbett OP  @Reply  
     
6 years ago
The value will be in the populated text box
Thomas Corbett OP  @Reply  
     
6 years ago
This database is populated already. In one section there are a series of products for each site. I have created a blank text box for the one that they choose so I would like to be able to click on one of the populated text boxes and have it copy the contents to the unpopulated text box as the product of choice.
Richard Rost  @Reply  
          
6 years ago
OK. As long as there is already a value in it, you can use OnClick. Let's say your boxes are called Box1 and Box2. In the OnClick event for Box1 all you have to say is:

Box2 = Box1

That's it. When you click on Box1, it's value will be copied into Box2. But you can't start with your focus in Box1, otherwise you would have to click OFF it and then back ON it.
Thomas Corbett OP  @Reply  
     
6 years ago
Thank you professor
Richard Rost  @Reply  
          
6 years ago
You're more than welcome. That's what I'm here for. Sometimes I overthink it. Reading your initial question, now it makes sense given the rest of your explanation. I guess in my mind I was just trying to figure out WHY you were doing it that way. But it's a simple solution for what you're trying to do. :)
Thomas Corbett OP  @Reply  
     
6 years ago
I was apparently over thinking it also, I was writing VB code to copy and paste it lol
Richard Rost  @Reply  
          
6 years ago
Well, there are clipboard functions you can use to copy and paste selected text. You can change what text is selected. There's all kinds of stuff you can do. But, if you literally just want to click on a text box and have its value copied to another box, that's all you need.
Thomas Corbett OP  @Reply  
     
6 years ago
Yes, I was clipboarding everywhere except where I wanted it, lol, as always, I like your solution better thank you again!!!

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/6/2026 10:53:07 AM. PLT: 0s