Journal date & time does not update

C

Cathy

I have added a form in a Journal Folder. When I save the
form and create a new entry the date and time remain the
same as when the form was created. How do I get the
standard Journal Form to update? I am using Outlook 2000.
Thank you.
 
S

Sue Mosher [MVP]

To make a new JournalItem default its start date/time to the current
date/time, try adding this code, the republishing the form:

Function Item_Open()
If Item.Size = 0 Then
Item.Start = Now()
End If
End FUnction
 
C

Cathy

I added this code in the Script Editor and republished the
form and nothing changed. Is there something else Ineed to
do? Thank you for your assistance.
Cathy
 
S

Sue Mosher [MVP]

Did you increment the version number so that you can tell for certain
whether the newly published version of the form is loading? check Help |
About This Form. Does any code at all run on your custom form?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
C

Cathy

To test it, I saved the form as a new form and it did not
update. When I looked in to Script Editor the code is
there.

Cathy
 
S

Sue Mosher [MVP]

What do you mean by "save it as a new form"? Earlier you said you published
it. Please check the form version number on a new item that you create with
the form.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
C

Cathy

Yes, I made it Version 2. I checked to make sure the code
was in the Script Editor and it still came back with the
original date, January 15, 2004. the date I created the
original form. I tried creating a new form below and it
did the same. Thanks for your assistance.

Cathy
 
S

Sue Mosher [MVP]

I'm still confused. Did you try creating a new *item* with the form? (Item =
data record, form = template) Did yoiu check the Help | About This Form on
that item to confirm that it's version 2? Does any other code in the form
run?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top