Results 1 to 2 of 2
  1. #1
    Gary is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    14

    Huge Query Headache

    I have two tables:



    Equipment and faults

    the equipment table has a field component groups. There are a series of faults common to each component group.

    Basically I have a many to many relationship.

    What I want is for the faults group to basically have a set of check boxes for each component group it applies to. Then whenever I have a combo box in one form that allows the user to select component groups a second combo will only display the faults associated with that group.

    I hope that I have made this clear... and I hope that someone can help...

    Gary

  2. #2
    Gary is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    14

    Solution

    This worked! added a me.requery in and everything was perfect

    SELECT Faults.Fault
    FROM Faults, Equipment
    WHERE ((([forms]![form1]![eqName])="Group1") AND ((Faults.Group1)=Yes)) OR ((([forms]![form1]![eqName])="Group2") AND ((Faults.Group2)=Yes)) OR ((([forms]![form1]![eqName])="Group3") AND ((Faults.Group3)=Yes))
    ORDER BY Faults.Fault;

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

Similar Threads

  1. Database size is huge due to memo fields
    By swaroopbhave in forum Import/Export Data
    Replies: 2
    Last Post: 08-07-2010, 11:00 PM
  2. Working With Huge Databases?
    By soma in forum Access
    Replies: 2
    Last Post: 02-16-2010, 06:27 PM
  3. Replies: 3
    Last Post: 08-06-2009, 11:49 PM

Tags for this Thread

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