Results 1 to 5 of 5
  1. #1
    Epona is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Location
    South Africa
    Posts
    26

    Month + 1

    I am busy putting together a mini MRP.



    I need to generate a table that provide a monthly projected factory demand. The table will not be static as it will change for each month it is run rolling forward.

    My access skills are a bit rusty and I am feeling like a bit of a dunce. I have generated a query that selets the 1st month of the period and another that returns all the data for the dates greater than the first period. I now need to summarise it into "monthly" coloumns.

    Was thinking of using the month + 1 concept but cant seem to get it to work. any bright ideas?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Could you describe the 'month + 1' concept? Not familiar with that.

    Have you tried a crosstab query?
    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.

  3. #3
    Epona is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Location
    South Africa
    Posts
    26
    I cant use a cross tb as there are subsequent calculations that have to be done on the monthly data and the colomn names will change every time the report is run in a new month or if additional forecast data is added.

    Month+1 that I am using is essentialy to look at the month in the filter table - that is always month 1 of the period and then return the data that matches to that month+1. The next column would then be the same but it would be +2. That way it will always roll forward irrespective of what is the starting month or which part of the financial year it is.

    I have got it to work using DateAdd('m',1,[Demand M1a]![Mnth]) but it is very clumsy.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Get it now, what you mean about the 'rolling forward'. You say you now have the query working? Clumsy it may be but does seem a reasonable approach to stabalize the output. I would need sample data, or the project itself, to analyze and explore alternatives. But probably won't be anything better.
    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.

  5. #5
    Epona is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Location
    South Africa
    Posts
    26
    Thanks, as you say, although clumsy it is stable and that is what matters at this point.

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

Similar Threads

  1. date to month
    By metokushika in forum Access
    Replies: 5
    Last Post: 11-29-2011, 09:37 AM
  2. Month/Month to date
    By Tony McGuire in forum Queries
    Replies: 9
    Last Post: 09-20-2011, 11:54 AM
  3. Track capacity changes month by month
    By Nils in forum Database Design
    Replies: 1
    Last Post: 02-18-2011, 03:03 PM
  4. First Day of Next Month
    By swalsh84 in forum Programming
    Replies: 6
    Last Post: 01-14-2011, 12:29 PM
  5. Replies: 5
    Last Post: 11-15-2010, 06:12 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