Results 1 to 2 of 2
  1. #1
    whojstall11 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    57

    Search form combo box filter

    I have an Search form with two combo boxes it works almost correctly. On update when i use the drop down menu it gives me my criteria.

    What is does:
    When I use the other combo box after my uses my first one it just adds to the results that are already there.

    I need for it to do:
    As i use my combo boxes it filters out all my data based on the criteria I have selected.
    Can you help
    Code:
    SELECT [Hardware Asset].DeviceType, [Hardware Asset].AssetNumber, [Hardware Asset].[Date Recieved] AS [Date Recieved2], [Hardware Asset].Depreciation, Date()-[Hardware Asset].[Date Recieved] AS Expr1, Order.[BU Purchased For], D2YMD([Expr1]) AS Expr2, [Depreciation]-[Hardware Asset].[Date Recieved] AS Days, D2YMD([Days]) AS [Time Left], [days]-[expr1] AS Expr3, D2YMD([Expr3]) AS [Time Left2]
    FROM [Order] INNER JOIN [Hardware Asset] ON Order.[PO Number] = [Hardware Asset].[PO Number]
    WHERE ((([Hardware Asset].DeviceType)=[forms]![deReport]![Text217]) AND (([Hardware Asset].[Date Recieved]) Is Not Null)) OR (((Order.[BU Purchased For])=[forms]![deReport]![Text417]))
    ORDER BY [Hardware Asset].DeviceType;


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    What is that sql for? Is it the RecordSource of form?

    I don't really understand your question.

    Do you want to provide db for analysis? Follow instructions at bottom of my post. Identify the objects involved in this issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-20-2012, 03:16 AM
  2. Filter Form by search
    By DCV0204 in forum Forms
    Replies: 2
    Last Post: 02-09-2012, 10:29 AM
  3. Replies: 4
    Last Post: 08-05-2011, 07:27 AM
  4. Filter A Form With Combo Box
    By JeffG3209 in forum Forms
    Replies: 15
    Last Post: 05-27-2011, 09:04 PM
  5. Filter my form from combo box
    By Angate in forum Forms
    Replies: 3
    Last Post: 04-24-2010, 01:57 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