Results 1 to 5 of 5
  1. #1
    OR1988 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    2

    Numeric or Date Series

    Hi All,



    I want a query that generates a series of numbers or dates
    without selecting any record

    For example: 1, 2, 3, 4 ... 30
    OR
    1/1/2011, 2/1/2011, 3/1/2011 ... 31/1/2011

    Regards.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Where do you want these number or date series to end up?
    In a Table?

    What you want is looking more like something I'd do in code.
    Is that an option for you?

  3. #3
    OR1988 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    2
    No, I would like them to appear in the query without existing in a table.

    Yes it can be done by a code, thanks.

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I'm sorry - I have never written a query that does not retrieve data a database - or a Text file - or an Excel spreadsheet.

    My understanding of a query is that you are 'querying' [asking a question of] the database to show data that is contained in the database.

    What you are wanting of the query is to CREATE the data out of thin air.
    I don't think that that is what queries are designed to do.

    I think the data that you need has to be created and saved either in a Table, a Text file or spreadsheet . . . and THEN you can run your query to show the data.
    After you're done with the data, you can delete it.

    I'm thinking of a Macro that runs Code in a Module to create the data and then runs the query to display the data.

    If this answer is not what you are looking for, perhaps you can post again and include the url to THIS thread in your new post.

    If it IS possible to do what you're wanting, I would like to know how.

    All the best!!

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    To what use do you plan for the sequence?

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

Similar Threads

  1. Replies: 2
    Last Post: 09-25-2011, 08:52 AM
  2. Force numeric value
    By jgelpi16 in forum Programming
    Replies: 5
    Last Post: 01-24-2011, 12:37 PM
  3. export a series of csvfiles
    By broecher in forum Programming
    Replies: 4
    Last Post: 09-23-2010, 09:10 AM
  4. Replies: 0
    Last Post: 07-22-2010, 07:43 AM
  5. Help Querying series
    By ktmchugh in forum Queries
    Replies: 20
    Last Post: 05-05-2009, 04:31 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