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 
Copying previous data
Ludwig Willems 
      
2 years ago
Hi, which video was there again to copy data from the previous record to the new one every time the data remains the same for some records
Adam Schwanz  @Reply  
           
2 years ago
There's a few ways you could do it. I'm not sure what video it is but I'll share what I use on one of mine. (note I love using recordsets so I use them, this may not be the "easiest" way.

If MsgBox("You are about to create a duplicate record for the purposes of a warranty replacement, do you want to continue?", vbYesNoCancel) <> vbYes Then Exit Sub
If Me.Dirty = True Then Me.Dirty = False
Dim Db As Database
Dim RS As Recordset
Set Db = CurrentDb
Set RS = Db.OpenRecordset("Select * From WarrantyT")
RS.AddNew
RS!CustomerID = CustomerID
RS!Amount = Amount
RS!OrderBy = [OrderBy]
RS!Note = [Note]
RS!Mileage = Mileage
RS!VIN = VIN
RS!DelNote = DelNote
RS!Invoice = Invoice
RS!DateSold = DateSold
RS!QuoteBy = QuoteBy
RS!SoldBy = SoldBy
RS!InvoiceBy = InvoiceBy
RS.Update
DoCmd.OpenForm "WarrantyF", , , "QuoteID=" & DMax("QuoteID", "WarrantyT")
Sami Shamma  @Reply  
             
2 years ago
Ludwig Willems OP  @Reply  
      
2 years ago
Hi Sami, this is a very good tip, but there is a video where you link to the previous record or other fields on the form to copy the same value linked to buttons, I think something with DLookUp...
Juan C Rivera  @Reply  
             
2 years ago
Ludwig Willems OP  @Reply  
      
2 years ago
He Juan, yep, that's him. thank you
Ludwig Willems OP  @Reply  
      
2 years ago
Can I attach a note to a button when one clicks over the button that gets my information like in Excel, is that possible....
Alex Hedley  @Reply  
           
2 years ago
Can you share a screenshot example of what you mean in excel?
Kevin Robertson  @Reply  
          
2 years ago
Do you mean show some text when the user hovers over the button?

Control Tip Text
Ludwig Willems OP  @Reply  
      
2 years ago
Hi Alex, Kevin, Control Tip Text,  that's exactly what I'm looking for. Thanks,

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/2/2026 8:54:13 AM. PLT: 0s