473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating a query to automatically update a field in a table

I have built a form that tracks our paperwork as it is processed. I need to include time frames from the date the paperwork is received to the date it is complete.

I have four fields in the form that are used by my employees. The fields are as follows:
Today's Date
Date Received
Date Completed
Time Frame to Complete

I need to have the "Time Frame to Complete" box automatically update when the date completed changes. If there is not an entry in the "Date completed' box, then I would like the result to be "Today's Date" - "Date Received"

I have completed this in an excel spreadsheet using nested IF functions, but cannot seem to accomplish this in access.

Please help!!!
Jul 29 '07 #1
2 2139
missinglinq
3,532 Expert 2GB
I'm afraid you'll have to be a little clearer, yeeehooo!
I need to have the "Time Frame to Complete" box automatically update when the date completed changes.
"Time Frame to Complete" updated to what?
If there is not an entry in the "Date completed' box, then I would like the result to be "Today's Date" - "Date Received"
The result in "Time Frame to Complete" or the result in "Date Completed?"

And do you want "Today's Date" to be the actual date you're looking at the record, i.e. 7/29/2007 today and 7/30/2007 tomorrow?

Let us know and we'll figure it out for you.

Welcome to TheScripts!

Linq ;0)>
Jul 30 '07 #2
Thanks for looking at this, I hope I am able to explain clearly what I'm trying to do.

I have an access database that displays the customer's name, address, phone number, etc. The information is entered by multiple employees through the form I have created. There are a few boxes I constructed that you can input dates for tracking the speed and process of paperwork. The boxes are labled as follows:

Date Docs Received Application (Short Date Format)
Date Docs Completed Application (Short Date Format)
Time Frame (Completed Date - Received Date)
Today's Date (Date the user is looking at the record)

The dates in the Date Docs Received Application and Date Docs Completed Application are manually inputted.

The Time Frame box will not be manually adjusted. I am trying to get it to show one of two options.
Show: "Date Docs Completed Application" - "Date Docs Received Application"
IF Date Docs Completed Application is blank
Then "Today's Date" - "Date Docs Received Application"

If the "Date Docs Completed Application" is changed to a different date, I would like the "Time Frame" box to automatically update with the new result. I hope this is possible, as I want the results to automatically be displayed into the Time Frame box.


Thanks for looking at this once again, your help is very much appreciated!!
Jul 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Umar Farooq | last post by:
Hello all, Please bear with the long explanation of my scenario. As I'm relatively new to the query world, I like to write my queries using the visual toos such as the "View" option in SQL...
4
by: Jeremy Weiss | last post by:
Thanks to much help from everyone in my previous thread, I've made it a pretty fair ways into my billing/invoicing db. I'm now needing a way to cycle through all the records in a table and create...
3
by: rrh | last post by:
I am trying to update a field in one table with data from another table. The problem I'm running into is I need to base the update on a range of data in the 2nd table. Table 1 has: date field...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
7
by: Nicolae Fieraru | last post by:
Hi All, I have a table tblProducts where I have four fields:\ Index, ProductName, EnterDate (as Date/Time - Medium Date), PurchaseDate (Date/Time - Medium Date) The EnterDate is automatically...
3
by: GL | last post by:
Hi, Is there a way to add a field to an existing table using a query of some sort (without needing to manually add a field to the table). I know how to do it with a make table query, but I have...
8
by: Maxi | last post by:
There is a lotto system which picks 21 numbers every day out of 80 numbers. I have a table (name:Lotto) with 22 fields (name:Date,P1,P2....P21) Here is the structure and sample data: ...
5
by: Peter Erickson | last post by:
I am running postgresql 7.4.2 and having problems creating a trigger function properly. I keep getting the following error: ERROR: OLD used in query that is not in rule I have a table called...
3
LMHelper
by: LMHelper | last post by:
How do I create a table from a query that will UPDATE each time I update the original table? I created a table from a query and it stayed the same for the past couple of months and did not...
2
by: willyc | last post by:
Hello all, hopefully you will kind enough to offer some assistance.... I want to make what i believe could be quite a complex query, something beyond the 'basic' access queries. I'm not afraid of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.