Results 1 to 4 of 4
  1. #1
    JonnyD123 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2014
    Posts
    2

    Field Size Message Box

    how would i display a message box when field size has been reached?

    Many thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    If user enters more characters than text field allows, Access will popup a message.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    JonnyD123 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2014
    Posts
    2
    for me it just doesnt let the user type anything else

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Actually, the message should pop up when attempt to save the record.

    If they can't type any more then that should indicate to the user they have hit limit. Users learn. Giving them a popup message they have to then always respond to will probably be more annoying.

    I sometimes put a red label on form above the textbox with a note about the length limit.

    If you really must, then need code that runs with every keystroke and compares the length with limit and if hits limit, gives message.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Limiting size of a field
    By Manass in forum Access
    Replies: 1
    Last Post: 08-14-2013, 03:39 PM
  2. Replies: 2
    Last Post: 03-20-2013, 04:25 PM
  3. Reduce field size in query field
    By escapades_access in forum Queries
    Replies: 9
    Last Post: 03-13-2011, 12:21 PM
  4. OLE field size?
    By Wiele in forum Programming
    Replies: 2
    Last Post: 01-19-2011, 01:22 AM
  5. Field size
    By nikki in forum Database Design
    Replies: 1
    Last Post: 02-15-2010, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums