calculated field form update

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access Training and help » Calculated field in form to update main table | Access forum

Calculated field in form to update main table | Access forum

resolvedResolved · High Priority · Version 2003

Harriet has attended:
Access Introduction course
Access Intermediate course
Access Advanced course

Calculated field in form to update main table

I have a ‘DateReceived’ field in my table, as well as ‘DeadlineDate’ the ‘DeadlineDate’ will always be 21 days after the ‘DateRecieved’. I have no problem with creating an expression that will calculate this.
However, I want to create a functional form for other users in my organisation to use with ease. Essentially in the form, when I enter a value in the 'DateReceived' box, and tab to the 'DeadlineDate' box, i want the value to automatically update to 21 days later. I know how to do this, but I need this calculated value to be stored and updated in the main table. I don’t understand how this works, without running a make table query every time a new value is entered.

If I create the field in the main table 'DeadlineDate', as a standard date format, then import it into the form, and make the expression in that field in the form, will this translate to the main table?

I’m slightly confused and the only help I can find online, is to either create the calculation in the form only (meaning the table will not update), or create and run a query (which means running it every time a new value is entered).

Please Help

RE: Calculated field in form to update main table

Hello harriet

Thanks for your question

The first question is why do you need to enter the due date into the table as it is always calculated as the received date plus 21 days. On the face of it there is no reason to store the number, because it can always be calculated when needed.
Can you clarify your reasoning here please?

Thanks

Stephen

RE: Calculated field in form to update main table

Sure.
Reports will eventually need to be generated monthy, (not by myself), with performance indicators and stats.
These stats will include the number of days shy of the deadline the request was completed in. Calculated using 'DateReceived' 'DeadlineDate' and 'DateSupplied'.

Thanks


 

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips


Server loaded in 0.09 secs.