Passing variables

P

Pete

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
 
S

Sue Mosher [MVP-Outlook]

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
 
H

Hollis D. Paul

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]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 

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