Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    20

    Unanswered: Limiting characters in a memo field?

    Is there a simple way to achieve one of the following:

    (a) Limit the number of characters entered in a memo field by displaying a warning alert.

    (b) Disabling the scrollbars (so that the Won't Grow/Shrink controls will do their job)?

    I suspect that (b) could be more preferable (or maybe even a combination of both, so we don't have users freaking out and wondering why the scrollbar isn't working).

    Is there a simple code to do this?

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,419
    Provided Answers: 7
    Why use a memo feild just use text box 2 250 chars


    Just put some code on the Keypress event



    Code:
    if len(memodata)> ??? and QuestionNotAsk = false then
    msgbox("you are typing in to much stuff")
    QuestionNotAsk = Ture
    End if
    ??? = then number of letter you want the warning to start


    you will have to
    declear the var @ the top of the Form
    Private QuestionNotAsk As Boolean
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    You know that text fields have a length limit, right?
    George
    Home | Blog

Posting Permissions

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