Table Update

K

kp

Hi,
I have a form field (which is also contained in a table)
that calculates a date from a date entered in another
field on the form. When a date is entered in one field,
the other field calculates and displays the desired date
resulting from the calculation. How do I get this
calculated date/value to be posted/updated in the table
the form is derrived from?

Thanks in advance.
 
R

Rick Brandt

kp said:
Hi,
I have a form field (which is also contained in a table)
that calculates a date from a date entered in another
field on the form. When a date is entered in one field,
the other field calculates and displays the desired date
resulting from the calculation. How do I get this
calculated date/value to be posted/updated in the table
the form is derrived from?

If you can calculate it, it doesn't need to be stored (nor should it be).
 
J

Jim Allensworth

Hi,
I have a form field (which is also contained in a table)
that calculates a date from a date entered in another
field on the form. When a date is entered in one field,
the other field calculates and displays the desired date
resulting from the calculation. How do I get this
calculated date/value to be posted/updated in the table
the form is derrived from?

Thanks in advance.
How about...

Me.MyDateField = [the calculated date]
Me.Dirty = False

?

- Jim
 
J

Jim Allensworth

If you can calculate it, it doesn't need to be stored (nor should it be).
I think that should be:
If it can be calculated *later*, it shouldn't be stored. There are
valid reasons to store the results of a calculation.

- Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top