Results 1 to 4 of 4
  1. #1
    leobear is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2012
    Posts
    4

    Data re-creation

    Hi all, this is my first post and I want to reconstruct one table in access but not sure how to do it,

    My current Table look like
    Customer Sales Month
    A 1 190001
    B 1 190001
    A 2 190002
    B 2 190002

    Because the sales data is accumulated (reset every January), I want to recreate with monthly sales.

    Customer Sales Month
    A 1 190001
    B 1 190001
    A 1 190002
    B 1 190002

    Therefore the step should be
    1) For every year Jan (xxxx01), the sales will be same
    2) For other months, the sales will be deducted with the previous month sales to get the month sales figure.

    But I am not sure how to use SQL to create such table, and the table need to rerun everytime I have new data coming in.

    Can anyone teaches me how to do that?

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Why is data 'reset'? What happens to the year's worth of data entry?
    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
    leobear is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2012
    Posts
    4
    Hi June,

    Yes because the data is YTD (year to date) data, and I want to recreate it to month to date.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    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.

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

Similar Threads

  1. Page creation
    By meliss421 in forum Access
    Replies: 6
    Last Post: 08-11-2011, 07:57 AM
  2. Report Creation Help
    By John.Impresst in forum Reports
    Replies: 0
    Last Post: 06-22-2010, 11:27 AM
  3. database creation
    By rchris494 in forum Database Design
    Replies: 1
    Last Post: 10-26-2009, 07:37 AM
  4. help with database creation
    By terrep263 in forum Database Design
    Replies: 1
    Last Post: 08-30-2006, 07:59 AM
  5. Will Pay $$$ for help w/ database creation!
    By eyesbryte in forum Access
    Replies: 1
    Last Post: 07-03-2006, 01:56 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