Results 1 to 4 of 4
  1. #1
    011billyw is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    31

    Filter box Gives error when i type an apostrophy

    Hello guys, i tried to filter a name of a client = David O' Sullivan

    However is gives me an error, i think it is because of the aphostrophy



    This is the code i am using
    Code:
    Private Sub Combo77_AfterUpdate()Me.Filter = "(Display_Name) = '" & Me.[Combo77] & "'"
    Me.FilterOn = True


    Thanks in advanced

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try

    Me.Filter = "(Display_Name) = " & Chr(34) & Me.[Combo77] & Chr(34)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    011billyw is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    31
    Hello Pbaldy,
    SOrry for the late response but i was in school

    Thank you so much!!!! it worked

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Combo Box Autocomplete / Filter as you type
    By Pimped in forum Programming
    Replies: 28
    Last Post: 01-14-2015, 08:37 AM
  2. Error#13 Type Mismatch
    By Nistin27 in forum Access
    Replies: 8
    Last Post: 08-17-2011, 04:15 PM
  3. Replies: 4
    Last Post: 07-14-2011, 09:49 AM
  4. type mismatch error?
    By hlcarlin in forum Programming
    Replies: 1
    Last Post: 07-07-2011, 08:30 AM
  5. Error 13 Type Mismatch error
    By GlennBurg in forum Programming
    Replies: 1
    Last Post: 06-21-2011, 03:05 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