Results 1 to 3 of 3
  1. #1
    vha7 is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2018
    Posts
    46

    How to get Check Box to apply to Keyword Text Box?

    Hi all,



    Access newbie here

    I have a database/form that contains a list of papers on drug information, with columns such as Indication, Patient Population, Study type, Category, etc.. I have a Category Combo Box that allows me to choose the type of "drug category" it is and a text box to enter a keyword and a search button to search the key word that is contained within any of the columns mentioned above AND also search within the category combo box (they are linked). However, I want to add check boxes that will allow me to be more specific with what my keyword search searches up such that I click the box of choice, and that would be linked and apply to the search box AND/OR combo box so it would further specify my form results. Notably, I want the checkboxes to be able to search any column that is exactly or contains (using wildcard LIKE) the name of the check box (i.e Drug A, Drug B, ..., and/or etc)

    Below, Drug B and D check boxes are checked off in which I will search within those two.
    Click image for larger version. 

Name:	Untitled.jpg 
Views:	5 
Size:	55.8 KB 
ID:	35058

    Any help would deeply be appreciated.

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    The drug name would be in a single column: [DRUG name].
    why would you want to search other columns for this drug name?

    you could have the tDrug table have the fields:
    DRUG NAME
    mark

    then the query would join the tDrug.DrugName to tDatatable.DrugName where tDrug.Mark = true.
    but this wouldnt work well in a multi-user environment.
    Is this the case?

  3. #3
    vha7 is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Jul 2018
    Posts
    46
    Quote Originally Posted by ranman256 View Post
    The drug name would be in a single column: [DRUG name].
    why would you want to search other columns for this drug name?
    I want the check box to search other columns because I don't have a column for the "Drug Name" specifically, I would have to manually create the column and fill it out on my own (I know my data is weird), but lets say the other columns contain the respective "Drug Name", thus, I would like to have it search across all the fields.

    And could you explain the query portion? Sorry

    I have also included an image of what my form looks like above

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

Similar Threads

  1. On Click event - apply to all text box controls
    By Middlemarch in forum Forms
    Replies: 5
    Last Post: 09-12-2017, 02:15 AM
  2. Replies: 2
    Last Post: 02-14-2017, 02:23 AM
  3. Replies: 4
    Last Post: 10-16-2013, 07:07 AM
  4. Apply same value to all text boxes on form
    By hlcarlin in forum Forms
    Replies: 5
    Last Post: 07-28-2011, 08:40 AM
  5. Apply check at record level
    By wasim_sono in forum Programming
    Replies: 1
    Last Post: 04-19-2007, 07:48 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