Martin,
Where did you put the code? It looks like you put it in one of the methods of the label, and I don't think that will do what you want.
How does the user navigate (or change records) on this form?
>I'm maintaining an application and want to add a label which shows a date plus a number of days. I made a text box with:
>
>this.caption = dtoc(x.date_to + 150)
>
>but it seems to be grabbing a date from another data session.
>
>I even tried using "thisform.txtDate.Value" but that didn't work.
>
>Thanks
Steve Gibson