Results 1 to 5 of 5
  1. #1
    moha1520 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2016
    Posts
    5

    Unhappy i want my query to act like excel work sheet

    i have this table
    a b
    -------------
    10 0
    20 5
    0 10
    i want this result from my query
    a. b c


    10 0 c=a1-b1 =====> 10
    20 5 (c1+a2)-b2 ===> 30-5=25
    0 10 (c2+a3)-b3 ===> 25-10=15

    its just like you working on excel worksheet. .

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Then work in excel. access is a different animal.

    You can sorta do it with a query and calculated fields.

  3. #3
    moha1520 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2016
    Posts
    5
    how?................

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    It's not easy without careful use of expressions.

    Put simply, Access queries are not designed so that one row can reference values in other rows.

    As Ranman said, Access is not Excel, and there are certain things that Excel can do (and is designed to do) that Access cannot do (at least not easily). Your requirement is one of them. If spreadsheet-type operations are a major part of your requirement, then you should use Excel.

  5. #5
    moha1520 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2016
    Posts
    5
    thank you very much ill ask vba guys im sure they can do it with recordset thing

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

Similar Threads

  1. Replies: 1
    Last Post: 02-27-2015, 10:56 AM
  2. Replies: 26
    Last Post: 01-08-2013, 04:55 PM
  3. Export Query to specific excel sheet
    By Perceptus in forum Queries
    Replies: 2
    Last Post: 12-20-2012, 11:50 AM
  4. Query to Formatted Excel Sheet
    By pbaker36 in forum Programming
    Replies: 4
    Last Post: 04-17-2012, 03:28 PM
  5. Import Excel sheet with query
    By tpcervelo in forum Queries
    Replies: 1
    Last Post: 08-03-2010, 07:10 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