![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Has anyone done this?
I'm trying to make a textbox called, Year, and it should be the following: - Allow Null Values - Must be 4-digits (numbers), no less or not greater. I tried using this logic: If Len(Item.UserProperties("Year").Value) 0 And Len(Item.UserProperties("Year").Value) 4 And IsNumeric(Item.UserProperties("Year") = False Then msgbox("Invalid. Must be 4-digits and no letters") End If For some reason it doesn't go through the IsNumeric() part. So I tried searching for a Key event method and it's seems like Outlook doesn't have such a thing... or I could be wrong. Also, I've tried using a Number field, but it keeps default the value with 0 which I can't get rid of. Any suggestions? Any thoughts would be much appreciated. |
#2
|
|||
|
|||
![]()
See my response to your other post on this issue.
-- 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 "nabeyaki-udon" wrote in message oups.com... Has anyone done this? I'm trying to make a textbox called, Year, and it should be the following: - Allow Null Values - Must be 4-digits (numbers), no less or not greater. I tried using this logic: If Len(Item.UserProperties("Year").Value) 0 And Len(Item.UserProperties("Year").Value) 4 And IsNumeric(Item.UserProperties("Year") = False Then msgbox("Invalid. Must be 4-digits and no letters") End If For some reason it doesn't go through the IsNumeric() part. So I tried searching for a Key event method and it's seems like Outlook doesn't have such a thing... or I could be wrong. Also, I've tried using a Number field, but it keeps default the value with 0 which I can't get rid of. Any suggestions? Any thoughts would be much appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Number only in a textbox | [email protected] | Outlook and VBA | 6 | September 18th 06 06:30 PM |
Populating one textbox using another? | Zer0 | Outlook - General Queries | 3 | August 4th 06 07:57 PM |
Enable Disable the To textbox | [email protected] | Outlook - Using Forms | 1 | May 23rd 06 09:54 PM |
Textbox in forms | Lorena | Outlook - Using Forms | 1 | April 7th 06 12:19 AM |
Textbox - Calculate Inititial Value | Sydney | Outlook - Using Forms | 2 | March 28th 06 01:26 AM |