Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Why prevent it? If the data in table has the character, users should be able to type it as part of the value to be matched.
    If a user types an apostrophie that now works i.e. paul's

    however if they happen to type: paul's "

    then I get a '3075' error.



    So if I prevent them from using "

    then I can't get the error (or I can use error trap).

    I'm not sure any school names would have "" in their name anyway unless you can again explain how to still filter for those.

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Okay, so it's not the apostrophe, it's typing a quote mark at the end (or anywhere in the input) that is the issue. Can either use code to validate the input or error trap. Either way, fix the input to remove " and continue the search.
    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. #18
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Okay, so it's not the apostrophe, it's typing a quote mark at the end (or anywhere in the input) that is the issue. Can either use code to validate the input or error trap. Either way, fix the input to remove " and continue the search.
    so if I have it make it = a string

    then validate the string

    then remove the " if there is one and replace it with null/nothing/""

    that should solve it...?

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Unless the user accidentally typed " (paul"s) when they should have typed ' (paul's), in which case the fixed input will not match data and record does not return. Therefore, one frustrated user.

    On second thought, might be better to trap the error and inform user and tell them to try again with correct input.
    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.

  5. #20
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Unless the user accidentally typed " (paul"s) when they should have typed ' (paul's), in which case the fixed input will not match data and record does not return. Therefore, one frustrated user.

    On second thought, might be better to trap the error and inform user and tell them to try again with correct input.
    Yes less frustrated users = less asking me to fix problems in whiny voice...

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    None of which deals with data entry input of paul"s. But that is rarer than the reverse of ' when should be " because " requires shift key.

    Also, entering paul's ' (multiple ') will generate error.

    There is no such thing as 'fool proof'. Always a better fool.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2014, 07:49 AM
  2. Replies: 3
    Last Post: 03-05-2013, 11:17 AM
  3. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  4. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  5. Replies: 1
    Last Post: 05-11-2012, 10:59 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