calculated field form update
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Calculated field in form to update main table

resolvedResolved · High Priority · Version 2003

replyReply Thu 14 Oct 2010, 14:09Delegate Harriet said...

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

For upcoming training course dates see: Pricing & availability

replyReply Wed 20 Oct 2010, 11:15Trainer Stephen said...

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

replyReply Wed 20 Oct 2010, 12:49Delegate Harriet said...

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

 

Please browse our web site to find out more about
microsoft database training and other Microsoft training courses.

Access tip:

Create An Inaccessible Field On A Form

There is sometimes a need to make a field in a form look like a normal field but be completely inaccessible to the user. To do this:

In the Field's Properties
Set the ENABLED property to No
Set the LOCKED property to Yes

The field will not grey out, but the user will not be able to do anything with it.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard