Results 1 to 3 of 3
  1. #1
    Candy_Tech is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jan 2017
    Posts
    6

    Creating a Search Box?

    Hello,
    I am working on a project using Microsoft Access 2013. *Disclaimer- My programming skills are little-to-none*
    I am in need of assistance creating a search box to find specific data in a report. My report is a nutritional table; the report is filled with different pieces of data from a table I made on Access. I made the report work, but need to figure out a way to quickly search for specific labels. I want to search for the labels by item number.


    Can someone please give me an idea on how to create a search box in Access?
    Any information is greatly appreciated!

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    https://answers.microsoft.com/en-us/...c-f91ed7b6ec09

    Any use


    Sent from my iPhone using Tapatalk

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    When you type in the textbox, the AFTERUPDATE will filter the results.....
    Code:
    sub txtFind_afterupdate()
    
    If IsNull(txtFind) then
        Me.filterOn= false
    else
       Me.filter="[field]='" & me.txtFind & "'"
       me.filterOn = true
    end if
    end sub

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

Similar Threads

  1. Replies: 1
    Last Post: 11-30-2016, 03:41 AM
  2. Replies: 8
    Last Post: 09-02-2015, 03:00 PM
  3. Help creating a search form
    By ttn022191 in forum Sample Databases
    Replies: 5
    Last Post: 09-26-2014, 01:39 PM
  4. Creating a search function
    By jlclark4 in forum Forms
    Replies: 7
    Last Post: 12-30-2010, 02:03 PM
  5. Creating a Search Field
    By SKUPenn in forum Programming
    Replies: 1
    Last Post: 01-28-2010, 08: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