Results 1 to 10 of 10
  1. #1
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117

    put a search box on a form?

    I'd like to put a search box on a form so the user can search for a record using the title field of 'maintable' and then modify it using the form.

    I'm not vba capable but I've seen a method where you add a text box to the form and use the control wizard to turn it into a search box.

    The first problem I have is that although the controls wizard appears to be selected, it doesn't open.



    Am I doing this wrong?

  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,770
    Are you sure that method was for a textbox, not a combobox?

    I don't use the wizards. Also don't normally use macros. Review: http://www.allenbrowne.com/ser-62.html
    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
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    It definitely said textbox but I'm open to any suggestions that achieves the same thing. I'll even try VBA if someone has the patience to hold my hand!

    Mystified as to why the wizard doesn't start.

  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,770
    Do you have link to what you saw?
    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. #5
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    I added a button and the control wizard appeared so I used "Category-Record Navigation and ACTION-Find Record." which brings up a find and replace box which wasn't exactly had in mind but it'll do for now. I wanted to type a name into a text box and have the form go to that record without all the other settings of the find/replace box.

  6. #6
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    Quote Originally Posted by June7 View Post
    Do you have link to what you saw?
    I can't find it again I'm afraid. Maybe that advice was in error.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The link I provide shows one method of accomplishing. It uses VBA code.

    Here is another http://datapigtechnologies.com/flash...tomfilter.html
    This uses dynamic parameterized query - which I also never use. I prefer the VBA method.
    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.

  8. #8
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    Thanks for that.

  9. #9
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    A query referencing the text box may do what you want also. Or have you resolved this issue now?

    in the criteria for the field you want to search type something like this:

    Like "*" & [Forms]![your_form_name]![Search_TXT] & "*" Or Is Null

    that will find anything that contains the characters you input. you can be more specific but that's up to you.

  10. #10
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    thanks for that. i'll use find and replace for now and then try your method later on.

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

Similar Threads

  1. Replies: 8
    Last Post: 09-02-2015, 03:00 PM
  2. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  3. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  4. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  5. Replies: 1
    Last Post: 04-20-2012, 03:16 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