Results 1 to 3 of 3
  1. #1
    MandM22 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    2

    Treat a 1 byte space as a valid character.

    I have a form linked to a SQL DB. There is a column on the table that is defined as 1 byte character... Not Null... default value = ' '. If I edit this column via a linked table on a form and try to enter a space it does not see the space as a valid character and tries to update the row with null.. which is not allowed. Is there a way to force the space character to be recognized in Access as a valid character?



    Thanks for any help, advice, or tips.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Not that I know of. Access drops spaces at the end of data and so a solo space is dropped. Why would you want a space in field?
    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
    MandM22 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    2
    Quote Originally Posted by June7 View Post
    Not that I know of. Access drops spaces at the end of data and so a solo space is dropped. Why would you want a space in field?
    The field is an indicator ... Default of space in SQL. If turned on they enter a 'Y'. Turned off is assumed to be a space. Table is used by several applications. Some may have coding looking for the space specifically. In theory a 'N' should be the default value and mean the indicator is off. I may not be able to use the 'N'. Bad table design I'm stuck dealing with...

    Thanks for the response... I figured there wasn't anything I could do...

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

Similar Threads

  1. Replies: 3
    Last Post: 05-20-2013, 07:28 AM
  2. Replies: 0
    Last Post: 10-03-2011, 03:32 AM
  3. Adding Sound Byte
    By scubagal in forum Forms
    Replies: 6
    Last Post: 09-08-2011, 09:21 AM
  4. Using format: Valid From... Until...
    By GTA in forum Queries
    Replies: 0
    Last Post: 03-28-2011, 02:44 AM
  5. Not a valid path
    By hhuuhn in forum Access
    Replies: 2
    Last Post: 08-23-2010, 02:06 PM

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