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 
Recordsetclone Subform
steve m 

13 years ago
Richard,

Thank you for the reply. I am trying to update my main form and subform based on a check box. When clicked I want my main form's text box [Process Date] to update with today's date. I then want to update the associated records in my subforms combo box [Combo268]. If my subform has 4 records, I want all four records to be updated instead of just the first record. I wanted to display an msgbox at the end with the record count.

I was using the following for that:
MsgBox "If needed, update property information for " & rst.RecordCount & " property bags below.", vbOKOnly, "Update when applicable"

In return, if the main form combo box is unclicked, I want the date removed and the subforms combo box back to another value.



Reply from Richard Rost:

Well, you could use a simple SQL command to perform the change:

Docmd.RunSQL "UPDATE WhateverT SET Field=NewValue WHERE ID=RelatedID"

Of course, you'll need to adjust the names accordingly. I cover this in my SQL Seminar, Part 2. Then if you really want a count of the items changed, you could just use DCOUNT to look it up. Two lines of code.

But you could also do all of this with just a simple recordset loop too. No need for a clone.

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/16/2026 1:36:29 PM. PLT: 1s