How do you programme a macro to use a field start date and a field end date to produce a derived field called duration.
Please advise on field properites.dateValue?
Can this be done using a macro with setvalue and action arguments to the date fields.
That's all you really need to do to see the difference in days from one to another. You should probably set the fields Locked property to Yes and its Tab Stop to No. This way no one can attempt to change the data (it wouldn't work anyway) or even stop on the field. Hope that does it for you!
Gord
ghubbell@total.net
You do not need to use a macro. Add an unbound textbox to your form or report. Then as it's controlsource use the DateDiff() function. You can find more about DateDiff in help. For example, if you want to know the difference in hours between two dates your controlsource property would look something like this:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.