+ Reply to Thread
Results 1 to 2 of 2

Length of numeric entries in a form

  1. #1
    Registered User
    Join Date
    09-24-2010
    Location
    Illinois, USA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Length of numeric entries in a form

    I have a form that asks for the Sq Inches of Material Picked and the Sq Inches of Material Used. If the Sq In Used entry is greater than the Sq In Picked entry, a Msg Box appears stating the Sq In Used Must Be Less Than The Sq In Picked. This works fine if the length of both numbers (ie Number of digits) is the same. For example, 99 & 82 or 250 & 128 or 1200 & 1180. But I get an error if the length of the numbers are different (eg. 100 & 82 or 1200 & 999). The code is:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sbernard; 09-27-2010 at 11:20 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issue with length of numeric entries in a form

    Hi sbernard

    The values in the user form are text. Try changing this line of code and see if it helps
    Please Login or Register  to view this content.
    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1