Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Controlling size of a query

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

  1. Ben Coffey

    Ben Coffey
    Expand Collapse
    Guest

    I have an table full of inputs and one of these inputs determines how many
    months of data I wish to create. I am planning on using the query a little
    bit like a spreadsheet for the mathematical properties. I was wondering if
    there is anyway I this input (number of years) to create a query with the
    coresponding number of months, and have them labeled.

    For example, I would like to input 15 years and come up with months labeled
    1 through 180.

    I really like the ability in Access to create forms and reports, so I don't
    really wish to go back to excel, but if I must well then I must.
     
  2. Loading...

    Similar Threads Forum Date
    General Controlling Kaam (Lust) Hard Talk Apr 8, 2014
    Money and Controlling Spending Questions and Answers Nov 18, 2011
    USA Anti-Islam pastor called controlling, "mad" Breaking News Sep 13, 2010
    Opinion Manmohan Singh Phenomenon: India's Grand Strategy of Controlling the Thought of Sikhs Breaking News Jul 8, 2010
    Technique Of Controlling Mind Gurmat Vichaar Jan 27, 2008

  3. KARL DEWEY

    KARL DEWEY
    Expand Collapse
    Guest

    >> I have an table full of inputs and one of these inputs determines how many
    months of data I wish to create.

    I do not understand this statement. Normally criteria in a query determines
    the time span for the results.

    >>input (number of years) to create a query with the coresponding number of months, and have them labeled.


    In a Totals query you can use this as criteria for your date field --
    > DateAdd("yyyy",-[Enter # of years], Date())


    Then insert a new column on the left like this --
    Month number: DateDiff("m", DateAdd("yyyy",-[Enter # of years],
    Date()),[YourDateField] )

    "Ben Coffey" wrote:

    > I have an table full of inputs and one of these inputs determines how many
    > months of data I wish to create. I am planning on using the query a little
    > bit like a spreadsheet for the mathematical properties. I was wondering if
    > there is anyway I this input (number of years) to create a query with the
    > coresponding number of months, and have them labeled.
    >
    > For example, I would like to input 15 years and come up with months labeled
    > 1 through 180.
    >
    > I really like the ability in Access to create forms and reports, so I don't
    > really wish to go back to excel, but if I must well then I must.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page