Results 1 to 10 of 10
  1. #1
    jmc1 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    4

    Creating a search function with data parameters

    How would one create a search function that would filter and limit a certain number of forms based on a data parameter. Ex: search values in securities greater than 400 but less than 900, and have the forms with values less or greater than the parameter set be filtered out.

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    There are many examples of search forms - but this one is probably the best one.
    http://allenbrowne.com/ser-62.html

    You may be able to use something based on a form like this to then filter subsequent forms, not super simple but certainly achievable.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,404
    I think there's a terminology problem here.
    You can search Tables and Queries, but not Forms.
    For example, you can search for a particular value (or range of values) in a Field within a Table. The 'data parameters' would be entered by the user into a Form control.
    The results of the search could be displayed on a Form or in a Report.

    Within this context, can you clarify your requirements?

  4. #4
    jmc1 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    4
    Sorry..new to this and have been put under the gun to learn it... I am essentially creating a database of profiles for Banks and tasked with creating a search function in the form that allows one to filter profiles(records) through the data parameter entered into the search function. This search function would obviously be linked to the table or query I constructed and linked to the form.. but do I create the search function in the form or in the table or query??

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    As davegri said -there is an issue with terminology. There is a certain jargon associated with database and with Access.

    It is better for posters -especially new to database posters - to clearly describe what you are trying o support/automate in clear, simple English. We don't know you, your experience, your environment....so make it real simple and clear so readers can understand what you are trying to accomplish.

    Good luck with your learning and project.

    Here is a link to a recent analogy of what a database is conceptually. It doesn't all apply to you, but starting with "Actually.." is a simple analogy that may help.

  6. #6
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,404
    but do I create the search function in the form or in the table or query??
    Since the search parameters are entered by the user into the form, code behind the form could either set and apply the filter values
    OR
    the code behind the form could modify the form's recordsource query to pull only the profiles that satisfy the query's criteria (based the data parameters entered).

  7. #7
    jmc1 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    4
    This sounds like exactly what I am trying to accomplish.. I dont mean to be annoying but could you give a basic overview of the steps to create this code and the steps to get to the platform of implementing the code.

  8. #8
    jmc1 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Posts
    4
    modifying the recordsource would be the correct direction I believe

  9. #9
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,404
    could you give a basic overview of the steps to create this code and the steps to get to the platform of implementing the code.
    Can you download your database? A real working example would avoid a dozen exchanges here to get good end results.
    All I need is the table with a few records. You can change the bank name to dummy it up. If you have a form, you could include that too, along with any supplemental queries or tables needed by the form.
    If you don't have a form, what do you need to search for?
    Last edited by davegri; 07-09-2018 at 10:26 AM. Reason: sp

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    jmc1,

    Did you look at the Allen Browne link that Minty provided?

    Here's a link to a keyword search video by Steve Bishop.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-28-2017, 10:36 PM
  2. Replies: 5
    Last Post: 01-24-2015, 11:49 AM
  3. Replies: 10
    Last Post: 11-05-2011, 11:41 AM
  4. Search form with Two parameters
    By karanvemuri in forum Forms
    Replies: 11
    Last Post: 10-03-2011, 06:26 PM
  5. Creating a search function
    By jlclark4 in forum Forms
    Replies: 7
    Last Post: 12-30-2010, 02:03 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