Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Did you do a compact and repair on your database first? That will remove unnecessary storage in the database.
    Then zip it. If it's still too large, you can post your zip file to a free storage site box.net 4sharing and I think you're using mediafire.

    I have 2003 and can only read an mdb format database. Can you save a copy in that format?

    Can you tell us more about the search as you type graphic in your post? Did you just mock this up or did you see a sample code somewhere?

    Why is the colored text highlight so important?

    I did some additional research since starting this post.

    See the 2007 Access text highlight database by Allen Browne
    http://www.everythingaccess.com/tuto...in-Access-2007

    I don't have 2007, so you'll have to work with the download sample from Allen's site, and let uis know how you make out.
    Last edited by orange; 06-08-2012 at 12:20 PM. Reason: found a sample database

  2. #17
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Orange;
    Nice find. I had not seen this site before. Lots of Access "candy" here.

    Alan

  3. #18
    uronmapu is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    124
    I find this site before but my examply is listbox, not sub form

    Could you edit in my file???

    P/S: my file (HelpMe.mdb) is MS Access 2003 file

    orange .......please see attached file and help my file?

    Many thanks
    Attached Files Attached Files

  4. #19
    uronmapu is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    124
    Please hepl me

  5. #20
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    I would like to help, but I still am unclear on
    a) what you are really having difficulty with
    b) what exactly you are working with - what did you write -what did you modify etc?

    I can see comments about what you should include in your code, but I don't see the original.
    I don't know what you wrote or what OpenGateSW wrote. I have no idea what worked or what didn't work.
    , or even what you have working/had working/ need to work. It looks like code has been copied and possibly modified.

    I do note that the code has line numbers , so it has been processed by someone/something.
    to

    The search you are using will only find text strings that are in the FirstName OR the Lastname.

    Try searching for Eduardo Cano -- you can Search for Eduardo OR Cano, but not Eduardo Cano.

    I don't know where your data came from, but your First and Last names seem to be reversed (at least from my perspective).

    You say you have seen Allen Browne's example. What did you do with it? Did you use that to modify the code you posted in Help.mdb?

  6. #21
    uronmapu is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    124
    I have a HelpMe.mdb file include:
    Table: tblNames
    Form: frmContactDetail, frmSearchExample

    (Please download file via: http://www.mediafire.com/?i7aoewle7c3cep7)


    I want when to open frmSearchExample, in type to search, enter any key search (Ex: uron)

    In lstItems Unbound will show key search result (First row below)
    I want the texts hightlight color (yellow) - Please image illustrate



    Please see the images for information detail ...

  7. #22
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Quote Originally Posted by uronmapu View Post
    I find this site before but my examply is listbox, not sub form

    Could you edit in my file???

    P/S: my file (HelpMe.mdb) is MS Access 2003 file

    orange .......please see attached file and help my file?

    Many thanks


    Allen's example does not use a subform. He uses 2 combo boxes to select
    a) the field to look in (choice of 3) and
    b) the search string to look for.

    And 3 text boxes to display results. Only 1 field can be searched at a time.

    He also uses the AfterUpdate event of the second combo.

    He then displays the non-Null found strings with appropriate html/rich text formatting. He updates the controlsource of the field to be displayed
    using
    Code:
     'Control Source for the text box to display matches.
            strControlSource = "=IIf(" & strField & " Is Null, Null, " & _
                "Replace(" & strField & ", """ & strSearchValue & """, """ & _
                strcTagStart & strSearchValue & strcTagEnd & """))"

    where the variables are dimmed as

    Code:
     'Purpose:   Filter, and highlight matches in txtSearchDisplay.
        Dim strField As String              'The field to search
        Dim strSearchValue As String        'The value to find
        Dim strControlSource As String      'ControlSource for displaying match.
        Const strcWildcard = "*"            'Some other back ends use %
        'HTML tags for highlighting matches. Could be just "<b>" and "</b>".
        Const strcTagStart = "<font color=""""red"""">"
        Const strcTagEnd = "</font>"

    I haven't had time to look into your database in any detail and won't be looking at it today.

    Can you work with text boxes? Why must it be ListBox? What have you been doing regarding this issue and the sample code you have?
    Perhaps someone following the thread may offer advice.

  8. #23
    uronmapu is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    124
    Many thanks, I want to using with ListBox

    Thanks all, ......

  9. #24
    turk is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Türkiye
    Posts
    20
    Examine
    perhaps gives an idea
    Sample

  10. #25
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Quote Originally Posted by turk View Post
    Examine
    perhaps gives an idea
    Sample
    Is there something different at your "sample" site, than at the link in post #16?

  11. #26
    uronmapu is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    124
    Thanks for you answer

  12. #27
    turk is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Türkiye
    Posts
    20
    Quote Originally Posted by orange View Post
    Is there something different at your "sample" site, than at the link in post #16?
    Sorry Sorry


  13. #28
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    turk, I wasn't complaining really. I was just trying to see what additional info was being posted and I couldn't see any.
    No need to apologize.

  14. #29
    uronmapu is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    124
    Can I help me?????

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

Similar Threads

  1. Replies: 12
    Last Post: 06-08-2012, 02:37 AM
  2. multiselect listbox - search result problem
    By svartisya in forum Forms
    Replies: 4
    Last Post: 11-29-2011, 07:17 AM
  3. how to highlight search keywords in results form?
    By Absolute_Beginner in forum Forms
    Replies: 2
    Last Post: 08-22-2011, 04:52 AM
  4. Binding a Combo Box Search Result
    By cvansickle in forum Forms
    Replies: 2
    Last Post: 12-06-2010, 11:03 AM
  5. Replies: 0
    Last Post: 10-16-2008, 02:39 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