I have tried to initialize the control with the date value from the item
fields, but the problem is the date time picker in placed on
MultiPage Control, when I try to set the value to the control on open event,
I get invalid property error. Here is a sample code I was using:
Item.GetInspector.ModifiedFormPages("Page(2)").DTPDate1.Value = _
Item.UserProperties("Date1")
Item.GetInspector.ModifiedFormPages("Page(2)").DTPDate2.Value = _
Item.UserProperties("Date2")
How could I refrence them if Date Time Picker are placed in multipage?
Thanks,
Sokrat
> > Could any one help me to solve this problem?
> >
[quoted text clipped - 6 lines]
>
> Mukilteo, WA USA
Hollis D. Paul - 17 Sep 2004 19:34 GMT
> How could I refrence them if Date Time Picker are placed in multipage?
That is a nut that has plagued Outlook developers for a long time. If
your multipage control does not provide a new page event, and a page
index, then there is no clean way to do it.
What you might do is add a command button to the page, which, in its
click event, initializes the date-picker control from the field. Messy,
but it should work.
Hollis D. Paul [MVP - Outlook]
Hollis@outhousebythesound.com
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2600
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US
Mukilteo, WA USA