PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Passing variables

Reply

Passing variables

 
Thread Tools Rate Thread
Old 03-05-2004, 01:43 PM   #1
Pete
Guest
 
Posts: n/a
Default Passing variables


Ok when you are designing a custom form and in the
actions tab you enter a new entry to open up another
form. A button gets added above the body of the form
giving you a way when form is running to open up that new
form you just added to the action area. That's what I am
calling a response tab, a poor choice of words. So from
what I am gathering from your last message if their is a
identical field on the other custom form that I just
clicked the button for, the value for that field will be
carried over to the new forms field, correct? If not how?

Thanks,

Pete
  Reply With Quote
Old 03-05-2004, 02:37 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Passing variables

Indeed, a button and a tab are two quite different things.

If the field names on the two custom forms are the same and you have the
custom action set up as a Response, the data should transfer. If it doesn't,
then just put code in the Item_CustomActions event handler to perform the
copy:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
Select Case Action.Name
Case "name of your action"
' built-in property
NewItem.Mileage = Item.Mileage
' custom proeprty
NewItem.UserProperties("propname") =
Item.UserProperties("propname")
Case "name of another action"
' your code for handling the other action goes here
End Select
End Function

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


"Pete" <anonymous@discussions.microsoft.com> wrote in message
news:790b01c4310c$2e700b80$a001280a@phx.gbl...
> Ok when you are designing a custom form and in the
> actions tab you enter a new entry to open up another
> form. A button gets added above the body of the form
> giving you a way when form is running to open up that new
> form you just added to the action area. That's what I am
> calling a response tab, a poor choice of words. So from
> what I am gathering from your last message if their is a
> identical field on the other custom form that I just
> clicked the button for, the value for that field will be
> carried over to the new forms field, correct? If not how?
>
> Thanks,
>
> Pete



  Reply With Quote
Old 03-05-2004, 05:14 PM   #3
Hollis D. Paul
Guest
 
Posts: n/a
Default Re: Passing variables

In article <790b01c4310c$2e700b80$a001280a@phx.gbl>, Pete wrote:
> That's what I am calling a response tab, a poor choice of words. So
> from what I am gathering from your last message if their is a
> identical field on the other custom form that I just
> clicked the button for, the value for that field will be
> carried over to the new forms field, correct? If not how?
>


OK. We agree on what a response form is. Now, we have to agree what a
calling form is. The calling form is the form to which the response
form is a response. They come in pairs--calling form and response
form.

The trick to getting the autoloading feature to work is in the design
of the response form. You recall that you drag fields from a specific
category (or list) of fields which you select in a dropdown list?
Usually one selects the category of the standard form that you are
modifying. However, when you are creating a response form, you must
drag the field from the category of the calling form. You will find it
lower on the list than the standard forms. This also implies that you
have published the calling form before you design the response form.

Hollis D. Paul [MVP - Outlook]
Hollis@outhousebythesound.com
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com...D=TECH&LN=EN-US

Mukilteo, WA USA


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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