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 
Update query
Ruth 

16 years ago
I am trying to create an update query for a financial quarterly forecasting database that will be able to ignore certain fields if outside a given parameter.  Example:

Table 1 contains the following fields: Cost Centers, amount, from period, to period

Table 2 contains the following fields: Cost Centers, employee number, amount, Period 1, Period 2, Period 3 (etc. out to Period 12)

Update Query lists all 12 periods from Table 2 to be updated to the amount in Table 1, but ONLY for the periods within the "from period" and "to period".

As the year progresses we want to be able to leave the historical periods as they are, update for the future periods, but yet not have to re-write the update query each time we revise the forecast.


Answer from Richard Rost:

Create a parameter query that asks for the BeginDate and EndDate. Then, use the output from this query to feed your update query.

You can specify criteria for running your queries, such as limiting between two dates, checking for specific names, etc. by specifying PARAMETERS in your queries.

This free tutorial on my web site explains how to use parameters in queries:

http://599cd.com/tips/access/parameter-queries/?key=BlFAlEx

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: 6/9/2026 10:20:48 AM. PLT: 0s