_DIARYDATE is a system variable, you don't really need the calendar to use it.
You can use:
thisform.caption = DTOC(_DIARYDATE)
Without bring up the calendar.
The problem with the calendar is, that is not top-level (or in other words once you bring up, the code continues and does not allow you to choose a date to set the caption). So ou may have to do it in two steps:
one button that brings the calendar and another button to set the caption after the dat was selected.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
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.