My database has a form that allows users to input transaction data. Two dates must be entered: 1) Trade Date and 2) Settle Date.
I would like the default value of Settle Date to be Trade Date + 3 but if the Trade Date is a Friday it should be Trade Date + 5.
Can a kind soul help me with the VBA code? I think I would put this on the Before Update property of the Settle Date control?
If the Friday thing makes it hard then just axe it. Mainly I want to know how to put the code on the control to create a default value. This will come in handy in several places.
For example, another field is Gross Amount. I want its default value to be the product of the Units and Price fields.
Kind regards,
Dwight
I would like the default value of Settle Date to be Trade Date + 3 but if the Trade Date is a Friday it should be Trade Date + 5.
Can a kind soul help me with the VBA code? I think I would put this on the Before Update property of the Settle Date control?
If the Friday thing makes it hard then just axe it. Mainly I want to know how to put the code on the control to create a default value. This will come in handy in several places.
For example, another field is Gross Amount. I want its default value to be the product of the Units and Price fields.
Kind regards,
Dwight