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 Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Requery Refresh ReHOW
Gregory Clancey 
    
3 years ago
This is a (rather long-winded) question about "updating" a Form -- which is based on a query -- from a second Form which has altered some of the data of the Table from which the Query is sourced.

A typical table may contain many fields populated with LONG INTEGERS which are the foreign keys accumulated from data collection Form(s) utilizing ComboBox  controls. This creates an efficient storage paradigm but is unsuitable for human interpretation.  Of course, a query relating the various ancillary data tables is used as Source for any "displaying" Forms.

However, it's often needed to edit an item or two. This cannot be done in the query, but in its underlying source table which is then reflected by the query. That's fine. I can open a Form with the original Table as its data source where ComboBoxes can easily be used to supply the foreign key data. I rely on an "updating" of the other Form -- the "display Form" from the "edit Form" -- to show the edit results. I'd like results to display immediately after changes are made in any control effecting the original Table.

So. . .what's the recommended method to execute an "update" from the one Form to the other. Currently, when more than one field value happened to have been changed and I'm "updating" more than once, Access throws a warning message about edits already having been made "by another user". If I close this "edit" Form and reopen it after each change, I am then able to make a subsequent alteration. How is this done without closing/re-opening the form?
Richard Rost  @Reply  
          
3 years ago
Usually Requery in Place will handle it:

Forms!OtherForm.Recordset.Requery

But yeah, you will get "other user" errors if BOTH are dirty. I'd make one read-only.
Gregory Clancey OP  @Reply  
    
3 years ago
Good idea. I'll give it a shot when next I'm at the console. Thanks.
Gregory Clancey OP  @Reply  
    
3 years ago
After playing with several alternates I've decided to simply DoCmd.Close after the requery instruction. This draws my attention to the field which I was intending to alter and allows for redeployment of the edit form if yet another field requires work. Frankly, changing more than one field proves rare and not worth the risk of unintended consequences of additional code gymnastics. "Cheap is expensive, Expensive is cheap."
Richard Rost  @Reply  
          
3 years ago
Yeah, that's what I usually do. :)
Gregory Clancey OP  @Reply  
    
3 years ago
Thanks. It helps to know that my perseverance is not merely that of a hooked fish's final flopping on the pier.
WAT?! Do you work 7 days a week? You're always out here -- thank God!
Richard Rost  @Reply  
          
3 years ago
Ask any small business owner... you work 8 days a week. :)
Richard Rost  @Reply  
          
3 years ago
Honestly though, I can't complain. I do work A LOT, but I've tried to structure my business in such a way that I can "kick ass" for 3 or 4 days in a row, then take a few days off whenever I want. That's why I started "queueing up" videos for release every day. To keep ya'll guessin! LOL. Sometimes I'll have a marathon session where I'll record 10 hours of video in one day and then not record for 2 or 3 days. Gives me time to recharge. The one thing that I love about what I do is the flexibility to control my own time. I don't have to punch a clock or be somewhere at 9am every day. Could I make more money working for someone else? Maybe... but I wouldn't give up my freedom for anything.
Richard Rost  @Reply  
          
3 years ago
But I really do LOVE what I do. I wake up in the morning looking forward to "what video can I record today!" So... zero complaints. :)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 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: 4/30/2026 3:22:11 AM. PLT: 0s