Access 2010: Use a field as a calculated field but allow users to write over the value

btgtech
btgtech used Ask the Experts™
on
I have an access database which we are using for planning purposes.  We are back dating the project from the delivery date using estimated hours for the work.  This then calculates the complete dates for each of the tasks.

Once the planning dates are sent, we would like to allow the user to be able to go to the field and write over the date in the field and change it to a new planning date.

Is this possible?

Example:
1. Planned Delivery Date = Date entered by user
2. Inspection Comp Date = Planned Delivery date - Packaging Hours Est
3. Assembly Comp Date = Inspection Comp Date - Inspection Hours Est
etc.

What if I then want to allow the user to go into the app and change the inspection complete date without changing the other dates that come before the inspection date?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:
A textbox based on a calculated field/value will not be updateable, so instead you should based the textbox on the underlying field and then use VBA To write those values if they're blank. For example:

Sub Form_Current()

If Nz(Me.InspComplDate,0) = 0 Then
  Me.InspComplDate =  Dateadd("h", Me.PkgHrsEst, Me.PlannedDelDate)
End If

End Sub

You'd do much the same fo the Assembly Compl Date

Author

Commented:
Or - would it make sense to capture data in a "planning table" so that the user can continue to play with the dates and hours.  Once they are ready to accept the plan, then write the values to the working schedule table.  Then they can update the values as needed in the working table.

Thoughts?
Most Valuable Expert 2012
Top Expert 2014
Commented:
You certainly could - or you could provide them a "scratchpad" sort of form, where they could plug in numbers and dates, and decide whether they wanted to save or not.
Most Valuable Expert 2012
Top Expert 2014

Commented:
Any reason for the B grade? You asked if you could update a field based on a calculation and my comment informed you that you could not do so, and gave you a workaround for it.

You then asked a question about using a staging table or form, and I provided you input on that.

So why the B?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial