A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , ,

Wrong default in end and start date and company fields





 
 
Thread Tools Display Modes
  #1  
Old July 26th 06, 08:03 PM posted to microsoft.public.outlook.program_forms
JRO Mtn Group
external usenet poster
 
Posts: 12
Default Wrong default in end and start date and company fields

I have created a custom Journal Form - Page 2. I have added the field End
Date - but it defaults to the date the form was created - as does the start
date. I have also added the field "company" from the journal field picker -
it also defaults to the date the field was added to the form,,,,,,why is
this. (I know that this field is not related to contacts-I need to it record
which Group did the work - and I'd like it to default to a particular text)
The form was designed to be just like the default main page - but to include
the end date so that the duration would be calculated.
Thank you!

Ads
  #2  
Old July 27th 06, 01:03 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Wrong default in end and start date and company fields

You can put code in the form's Item_Open event handler to set start to right now:

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

You also could use a formula on each date field's control to accomplish the same thing.

I don't know why the Company field would be playing games, but make sure you haven't set an initial value for it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"JRO Mtn Group" wrote in message ...
I have created a custom Journal Form - Page 2. I have added the field End
Date - but it defaults to the date the form was created - as does the start
date. I have also added the field "company" from the journal field picker -
it also defaults to the date the field was added to the form,,,,,,why is
this. (I know that this field is not related to contacts-I need to it record
which Group did the work - and I'd like it to default to a particular text)
The form was designed to be just like the default main page - but to include
the end date so that the duration would be calculated.
Thank you!

  #3  
Old July 28th 06, 12:55 AM posted to microsoft.public.outlook.program_forms
JRO Mtn Group
external usenet poster
 
Posts: 12
Default Wrong default in end and start date and company fields

I'm not very experienced - how do I put a formula in the control- for the
date fields? I tried assigning the company field to a default text value but
that didn't work either.
I appreciate your help

"Sue Mosher [MVP-Outlook]" wrote:

You can put code in the form's Item_Open event handler to set start to right now:

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

You also could use a formula on each date field's control to accomplish the same thing.

I don't know why the Company field would be playing games, but make sure you haven't set an initial value for it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"JRO Mtn Group" wrote in message ...
I have created a custom Journal Form - Page 2. I have added the field End
Date - but it defaults to the date the form was created - as does the start
date. I have also added the field "company" from the journal field picker -
it also defaults to the date the field was added to the form,,,,,,why is
this. (I know that this field is not related to contacts-I need to it record
which Group did the work - and I'd like it to default to a particular text)
The form was designed to be just like the default main page - but to include
the end date so that the duration would be calculated.
Thank you!


  #4  
Old July 29th 06, 12:26 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Wrong default in end and start date and company fields

Open the form in design mode. Drag the desired field to a custom page. Bring up the PRoperties dialog for the field and switch to the Value tab. Under "Initial Value," enter Now as the formula.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"JRO Mtn Group" wrote in message ...
I'm not very experienced - how do I put a formula in the control- for the
date fields? I tried assigning the company field to a default text value but
that didn't work either.
I appreciate your help

"Sue Mosher [MVP-Outlook]" wrote:

You can put code in the form's Item_Open event handler to set start to right now:

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

You also could use a formula on each date field's control to accomplish the same thing.

I don't know why the Company field would be playing games, but make sure you haven't set an initial value for it.


"JRO Mtn Group" wrote in message ...
I have created a custom Journal Form - Page 2. I have added the field End
Date - but it defaults to the date the form was created - as does the start
date. I have also added the field "company" from the journal field picker -
it also defaults to the date the field was added to the form,,,,,,why is
this. (I know that this field is not related to contacts-I need to it record
which Group did the work - and I'd like it to default to a particular text)
The form was designed to be just like the default main page - but to include
the end date so that the duration would be calculated.
Thank you!


  #5  
Old July 31st 06, 07:19 PM posted to microsoft.public.outlook.program_forms
JRO Mtn Group
external usenet poster
 
Posts: 12
Default Wrong default in end and start date and company fields

I Got it!! - Thanks. I got the initial value in the company field to work by
putting quotes around it - yippee

"Sue Mosher [MVP-Outlook]" wrote:

Open the form in design mode. Drag the desired field to a custom page. Bring up the PRoperties dialog for the field and switch to the Value tab. Under "Initial Value," enter Now as the formula.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"JRO Mtn Group" wrote in message ...
I'm not very experienced - how do I put a formula in the control- for the
date fields? I tried assigning the company field to a default text value but
that didn't work either.
I appreciate your help

"Sue Mosher [MVP-Outlook]" wrote:

You can put code in the form's Item_Open event handler to set start to right now:

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

You also could use a formula on each date field's control to accomplish the same thing.

I don't know why the Company field would be playing games, but make sure you haven't set an initial value for it.


"JRO Mtn Group" wrote in message ...
I have created a custom Journal Form - Page 2. I have added the field End
Date - but it defaults to the date the form was created - as does the start
date. I have also added the field "company" from the journal field picker -
it also defaults to the date the field was added to the form,,,,,,why is
this. (I know that this field is not related to contacts-I need to it record
which Group did the work - and I'd like it to default to a particular text)
The form was designed to be just like the default main page - but to include
the end date so that the duration would be calculated.
Thank you!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resend: wrong default date when creating appointment Xavier Outlook - Calandaring 6 July 18th 06 05:21 PM
Calendar appointments have no start and end time Dean Outlook - Calandaring 0 June 30th 06 11:58 AM
Outlook task start/end date should be viewable on Calendar Dsadam Outlook - Calandaring 1 April 29th 06 02:38 AM
wrong default date when creating meeting in shared calendar Xavier Outlook - Calandaring 1 April 11th 06 06:58 PM
date fields - link the calander pop-up to a custom date field Tom Outlook - Using Forms 0 January 23rd 06 10:13 PM


All times are GMT +1. The time now is 12:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Internet Advertising - Mortgages - Myspace Proxy - Bad Credit Mortgages - Credit Cards