news:9a********************************@4ax.com...
William Bradley wrote:
I have two cells on a form. One of them is the "Production Date" and the
other is the "Expiry Date". The "Expiry Date" is 183 days after the
"Production Date."
On an Excel spreadsheet, the "Expiry Date" is automatically entered, when
the "Production Date" is entered. To do this the "Expiry Date" cell carries
the following formula: "=A15+183".
I would like to be able to do the same on an Access Form, with the results
written to the underlying table.
I think what you're asking for can be done by using a line
of code in the Production Date text box's AfterUpdate event
procedure:
txtExpiryDate = DateAdd("d", 183, txtProductionDate)
Thank you for the above Marsh. I already have a line of code in the "After
Update" of the "ProductionDate" field. Is it possible to add yours, above,
as well? If so how? I tried it and it didn't work, probably due to my
missing something out.
Is there a way of accomplishing the same result using the "Expiry Date"
field.
Thank you,
Bill.