Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    You just have to include all three criteria. Options:



    1. query with parameters as demonstrated in http://datapigtechnologies.com/flash...tomfilter.html

    2. code (VBA or macro) to move to record

    3. code (VBA or macro) to set form Filter and FilterOn properties
    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.

  2. #17
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Thanks June. I got that part now. However, there's one thing I overlooked:

    I need the source of comboArticle to be based on both the value of comboTicket AND comboLocation. So I tried to change my comboLocation_AfterUpdate procedure to:

    Private Sub comboLocation_AfterUpdate()

    comboArticle.RowSource = "Select DISTINCT tableWarehouseData.Article " & _
    "FROM tableWarehouseData " & _
    "WHERE tableWarehouseData.Loc = '" & comboLocation.Value & "' " & _
    "WHERE tableWarehouseData.Ticket = " & comboTicket.Value & " " & _
    "ORDER BY tableWarehouseData.Article;"
    End Sub

    However, I get an error as soon as I click on the comboArticle combobox that says:

    "Syntax error (missing operator) in query expression 'tableWarehouseData.Loc = 'z' WHERE tableWarehouseData.Ticket = 8'."

    What's wrong? I'm guessing that it's probably something really simple, haha. Can you please take a look at form formWarehouseData again?

    Thank you once again!

    Tony
    Attached Files Attached Files

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    comboArticle.RowSource = "SELECT Article FROM tableWarehouseData " & _
    "WHERE Loc = '" & comboLocation & "' AND Ticket = " & comboTicket & " ORDER BY Article;"
    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.

  4. #19
    TKTheKid is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    35
    Perfect! Thanks June!

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

Similar Threads

  1. Immediately update table with form?
    By Rosier75 in forum Forms
    Replies: 6
    Last Post: 06-08-2012, 09:11 AM
  2. Forms designated for edit only
    By GAccess in forum Forms
    Replies: 7
    Last Post: 05-09-2012, 11:54 AM
  3. Replies: 1
    Last Post: 11-03-2011, 11:56 PM
  4. Edit table only via forms
    By accessnewb in forum Access
    Replies: 1
    Last Post: 08-01-2011, 12:04 PM
  5. Replies: 0
    Last Post: 07-08-2010, 11:22 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