Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    I used this in a query

    Click image for larger version. 

Name:	Search.jpg 
Views:	8 
Size:	80.8 KB 
ID:	23793

    Code:
    SELECT Field.Field_Name, System.[System Name], [Nomenclature] & " " AS Nomen, Component.Component, Version.Version, Accreditation.[ACC_#], Accreditation.Expires, Accreditation.Compliance, Accreditation.FD_Compliant, Accreditation.Type_ACC, Accreditation.Accred, Main.Hold
    FROM Version RIGHT JOIN (System RIGHT JOIN (Nomenclature INNER JOIN (Field INNER JOIN (Component INNER JOIN (Accreditation INNER JOIN Main ON Accreditation.Accred_ID = Main.[ACC_#]) ON Component.Comp_ID = Main.Comp_ID) ON Field.Field_ID = Main.Field_ID) ON Nomenclature.Nomen_ID = Main.Nomen_ID) ON System.SYS_ID = Main.SYS_ID) ON Version.Vers_ID = Main.Vers_ID
    WHERE (((Field.Field_Name) Like "*" & [Forms]![Search]![Field] & "*") AND ((System.[System Name]) Like "*" & [Forms]![Search]![System] & "*") AND (([Nomenclature] & " ") Like "*" & [Forms]![Search]![Nomenclature] & "*") AND ((Component.Component) Like "*" & [Forms]![Search]![Component] & "*") AND ((Version.Version) Like "*" & [Forms]![Search]![Verion] & "*") AND ((Accreditation.[ACC_#]) Like "*" & [Forms]![Search]![ACC_Number] & "*") AND ((Accreditation.Expires) Like "*" & [Forms]![Search]![Expiration] & "*") AND ((Accreditation.Compliance) Like "*" & [Forms]![Search]![Expired] & "*"));
    With this form:

    Click image for larger version. 

Name:	Search_Frm.png 
Views:	8 
Size:	14.4 KB 
ID:	23794



    Into a report

  2. #17
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Thank you to everyone that has commented. Turns out that there was a fundamental flaw in my DB. I was told that I'm treating my DB like a spreadsheet. This is completely correct. I'm redesigning it. All of your comments were very helpful. I will have much more intelligent questions in the future.

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

Similar Threads

  1. DAO ADO and Query for searching records
    By TioAdjie in forum Forms
    Replies: 12
    Last Post: 02-20-2014, 08:16 PM
  2. Replies: 22
    Last Post: 09-16-2013, 08:48 PM
  3. Searching Using a Query in Multiple Fields
    By RossIV in forum Queries
    Replies: 10
    Last Post: 07-24-2013, 06:32 AM
  4. Issue with searching and filtering query
    By federer8 in forum Queries
    Replies: 1
    Last Post: 02-08-2013, 06:21 PM
  5. Replies: 4
    Last Post: 06-29-2012, 09:05 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