
Can't Preview Subject field
Try adding this code to your appointment form to build the value of the Subject property from your three custom fields when the item is saved:
Function Item_Write()
Item.Subject = Item.UserProperties("LNAME") & ", " & _
Item.UserProperties("FNAME") & " (" & _
Item.UserProperties("EXAM") & ")"
End Function
If you prefer to use a formula, with your form in design mode, drag the Subject property from the FIeld Chooser to any custom page. Right-click the resulting text box, then choose Properties and switch to the Value tab. For the formula type in:
[LNAME] & ", " & [FNAME] & " (" & [EXAM] & ")"
and set the formula to always calculate automatically.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
Quote:
> I want the subject field bound to 3 fields. Here are the
> names.
> LNAME
> FNAME
> EXAM
> When I preview the outlook calender for the whole day, I
> should be able to read:
> -----------------------
> SMITH,JOHN (MRI Knee)
> -----------------------
> >> I have 3 test boxes.
> >> Last name
> >> First name
> >> Type of Exam
> >> When I key in the 3 boxes, I want the subject field to
> >> automatically fill with those fields:
> >> Like:
> >> Smith, John(MRI Head)
> >> This is so I can see it in the subject field when
> viewing
> >> my calendar for the day.
> >> I binded a control to a field using: