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

calculated field form update

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

ResolvedVersion 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:

Create own ribbon tab - Access 2010

a. In Access click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.