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

If Then Formula



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 7th 06, 10:34 PM posted to microsoft.public.outlook.program_forms
Aggie G
external usenet poster
 
Posts: 1
Default If Then Formula

I am trying to create an If Then formula that will populate a name when a
spefic checkbox is selected. The checkboxes a

lobby
boardroom
training room

When one of these checkboxes is selected, I want the checkbox name to
appear. This is the formula that I created, but it is not working:
IIf( [lobby] =true, "Lobby" ) or IIf( [Training Room] =true, "Training Room"
) or IIf( [Boardroom] =true, "Boardroom" )

Instead of getting the word in () I am getting a value of -1 or 0. Please
help.


Ads
  #2  
Old November 7th 06, 11:31 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default If Then Formula

In article ,
=?Utf-8?B?QWdnaWUgRw==?= wrote:
Instead of getting the word in () I am getting a value of -1 or 0. Please
help.

Stop with the formula stuff, it will drive you crazy! Do it in vbscript
using the appropriate syntax to access the check-box values, which will be 0
or 1, unless you have assigned them to a yes/no field.

--
Hollis Paul
Mukilteo, WA USA


  #3  
Old November 8th 06, 12:51 AM posted to microsoft.public.outlook.program_forms
Aggie G
external usenet poster
 
Posts: 15
Default If Then Formula

I do not know how to write vbscript, what now?

"Hollis Paul" wrote:

In article ,
=?Utf-8?B?QWdnaWUgRw==?= wrote:
Instead of getting the word in () I am getting a value of -1 or 0. Please
help.

Stop with the formula stuff, it will drive you crazy! Do it in vbscript
using the appropriate syntax to access the check-box values, which will be 0
or 1, unless you have assigned them to a yes/no field.

--
Hollis Paul
Mukilteo, WA USA



  #4  
Old November 8th 06, 03:43 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default If Then Formula

In article ,
=?Utf-8?B?QWdnaWUgRw==?= wrote:
I do not know how to write vbscript, what now?

You don't know how to use the formula builder either, what then? And,
it is worth adding that not many people do.

The "what now" part is that your manager scrounges around his hidden
budget crevices and gets you some programming support. But what you
might do is search at www.outlookcode.com for some code examples of how
to schedule resources. And there are some forums there in which you
could also ask how other non-programmers have managed to schedule
resources.

--
Hollis Paul
Mukilteo, WA USA


  #5  
Old November 8th 06, 04:44 PM posted to microsoft.public.outlook.program_forms
Aggie G
external usenet poster
 
Posts: 15
Default If Then Formula

I don't know if I explained my problem well. I have a form that I created and
the locations listed below are to be selected by the requestor using my form.
I want the location to populate on another tab in form, which is only used by
me. I want the location name to automatically populate on my part of the form.

"Hollis Paul" wrote:

In article ,
=?Utf-8?B?QWdnaWUgRw==?= wrote:
I do not know how to write vbscript, what now?

You don't know how to use the formula builder either, what then? And,
it is worth adding that not many people do.

The "what now" part is that your manager scrounges around his hidden
budget crevices and gets you some programming support. But what you
might do is search at www.outlookcode.com for some code examples of how
to schedule resources. And there are some forums there in which you
could also ask how other non-programmers have managed to schedule
resources.

--
Hollis Paul
Mukilteo, WA USA



  #6  
Old November 8th 06, 06:16 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default If Then Formula

In article ,
=?Utf-8?B?QWdnaWUgRw==?= wrote:
I don't know if I explained my problem well. I have a form that I created and
the locations listed below are to be selected by the requestor using my form.
I want the location to populate on another tab in form, which is only used by
me. I want the location name to automatically populate on my part of the form.

Here is what I would do: I would not have the check-boxes bound to any field. I
will assume names for these controls: mycb1, mycb2,and mycb3. I would create
click_event handlers for these three controls, one for each:
Sub mycb1_click()

Set objPage = Item.GetInspector.ModifiedFormPages("My Page")
Set objControl = objPage.Controls("mycb1")
if objControl.Value = 1, then Item.BillingInformation = "lobby"
set objControl = Nothing

End Sub

Then, on the page where you want to display the selected value, bind the textbox
control to BillingInformation.

This, of course, assumes that you are not using BillingInformation for anything
else. Also, change the names I have used for the ones you have used. You enter
all this in the code editor when in design mode. It is in the tool bar, run
your pointer over all the buttons till you find the one that says code editor.

There is a forum at www.outlookcode.com for custom form design and programming.
You are now entering the wacky world of VBScript coding.

See the following pages:

Syntax for Microsoft Outlook property and control values and events
Correct syntax for accessing Microsoft Outlook property and control values and
writing events that respond to changes in properties or control values
URL: http://www.outlookcode.com/d/propsyntax.htm - 32KB - 10 May 2006

Controls on Microsoft Outlook Custom Forms
Tips, tricks and other resources for using controls on Microsoft Outlook forms
URL: http://www.outlookcode.com/d/formcontrols.htm - 36KB - 10 May 2006

--
Hollis Paul
Mukilteo, WA USA


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Base OL recurrence range on a formula Pharphel Outlook - Calandaring 4 April 25th 06 01:30 PM
Need a formula Charles Woll Outlook Express 2 February 26th 06 07:27 PM
Reference Formula ~KO Outlook - Using Forms 3 February 24th 06 08:20 PM
Creating a validation formula Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 05:26 PM
New Field Formula editor Sue Mosher [MVP-Outlook] Outlook - Using Contacts 0 January 18th 06 05:10 PM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.