Results 1 to 2 of 2
  1. #1
    MintChipMadness is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    109

    Query Critieria using Combo Box Column

    From what I understand, I can't use a different column other than the first to filter query criteria. To get around this I made the first column the search criteria I need and then hide it by putting the column width to zero.



    I did see another solution somewhere but I can't find it again. It is using VBA to add the column amount to a variable and then filtering the search criteria by that variable. Unfortunately I don't know how to do this in VBA so I am asking here if anyone knows the answer.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Haven't seen it, but likely something like this:

    Code:
    Public Function ComboForQuery() AS AppropriateDataType
      ComboForQuery = Forms!FormName.ComboName.Column(x)
    End Function
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. 2 Column Combo Boxes in display.
    By ThebigCt in forum Forms
    Replies: 10
    Last Post: 02-23-2012, 12:28 AM
  2. Select as based on other critieria
    By raweber in forum Queries
    Replies: 2
    Last Post: 11-18-2011, 01:20 PM
  3. Replies: 2
    Last Post: 01-12-2011, 12:00 AM
  4. Isolate Column in Combo Box
    By jgelpi16 in forum Forms
    Replies: 2
    Last Post: 05-06-2010, 12:52 PM
  5. Replies: 7
    Last Post: 04-27-2010, 02:47 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