Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Report Criteria

Discussion in 'Information Technology' started by Tim, Jul 28, 2006.

  1. Tim

    Tim
    Expand Collapse
    Guest

    I have a table that consists 3 colums: Description, Column A, Column B
    Columns A & B are YES/NO columns and are checked YES if the item in the
    DESCRIPTION field is present, and sometimes both are checked.

    What I am trying to accomplish is how do I go about constructing the Query
    that when I open the report it will ask me for the YES results for COLUMN A
    or B .

    I suspect this is an OPTION GROUP based query, but I have a lot of trouble
    constructing those.
     
  2. Loading...

    Similar Threads Forum Date
    UK British Sikh Report-2016 Breaking News Mar 24, 2016
    1984 The Story I Did Not Report In ’84 History of Sikhism Jun 28, 2015
    Opinion Top Green Beret Officer Forced to Resign Over Affair With WaPo Reporter Breaking News Jun 26, 2014
    United Sikhs New Report Shows Increasing Hate Attacks on Sikhs Sikh Organisations May 21, 2014
    Legal ACLU reports: Judge orders Sikh man, "Remove that rag, or Go to Jail! Breaking News Sep 27, 2013

  3. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    Hi Tim
    In the RecordSource of the report you can try something like

    Select * From TableName Where [Columns A] = [You want to select A?] Or
    [Columns B] = [You want to select B?]

    If the user will enter -1 (True) Or 0 (False) it will list the right data.
    I would use a form with two check boxes where the use can select which
    column he wants

    Select * From TableName Where [Columns A] = Forms![FormName]![CheckBoxA] Or
    [Columns B] = Forms![FormName]![CheckBoxB]


    --
    Good Luck
    BS"D


    "Tim" wrote:

    > I have a table that consists 3 colums: Description, Column A, Column B
    > Columns A & B are YES/NO columns and are checked YES if the item in the
    > DESCRIPTION field is present, and sometimes both are checked.
    >
    > What I am trying to accomplish is how do I go about constructing the Query
    > that when I open the report it will ask me for the YES results for COLUMN A
    > or B .
    >
    > I suspect this is an OPTION GROUP based query, but I have a lot of trouble
    > constructing those.
     

Share This Page