Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / September 2004

Tip: Looking for answers? Try searching our database.

Date Time Picker

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sokrat Saydahmat - 16 Sep 2004 22:55 GMT
Hi,

I am using a Date Time Picker in Outlook appointment page(2), it is bounded
to a field that has a Date/Time format. The problem is when I saved an
appointment with the date using Date Time Picker, it seems accepted the date
value, but when I reopen it the Date Time Picker does not populate the
fields value. From "design form" under "User Defined Field in This Item" I
can see the value in that Date field, but it is not associated to the
Control.

Could any one help me to solve this problem?

Thakns,
Sokrat.
Hollis D. Paul - 17 Sep 2004 05:28 GMT
> Could any one help me to solve this problem?

In your item-open script, you must initialized the control.  

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
Sokrat Saydahmat - 17 Sep 2004 15:06 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.