Results 1 to 5 of 5
  1. #1
    ismailkhannasar is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    11

    Post Database Rows

    i have three Colmns in Table
    Budget , Paid Amount and balance ... the paid amount should be Minus from Budget and save in that work in first rows but not work in second

    Budget paid amount Balance
    15000 5000 10000
    15000 4000 11000 (second Instalment) but it should be Minuse from Balance


    How to DO that

    do u have any idea

  2. #2
    Amerlitong is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2013
    Posts
    10
    Edit table...
    Change the Data Type of Balance column into Calculated and enter arithmetic expression that you want...

    in your case...

    (Budget - paid amount)

    Cheers

  3. #3
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117
    dear if you want as below
    Budget Paid Balance Entrydate
    15000 0 15000 01-Feb-13
    0 5000 10000 02-Feb-13
    0 4000 6000 03-Feb-13
    try this query.

    SELECT Table1.Budget, Table1.Paid, DSum("[Budget]-[Paid]","[table1]","cdate(format([entrydate],'dd-mmm-yy')) <=#" & CDate(Format([entrydate],'dd-mmm-yy')) & "#") AS Balance, Table1.Entrydate
    FROM Table1
    GROUP BY Table1.Budget, Table1.Paid, Table1.Entrydate
    ORDER BY Table1.Entrydate;

  4. #4
    ismailkhannasar is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    11
    dear waqas sahib ,
    i have two rows in table with name of Budget & Paid Amount but i make a query to exp1:[budget-paidAmount] . how to do in query is there any other way to do ,,, i m new in Access thanks

  5. #5
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117
    ok,

    try this

    SELECT Table1.Budget, Table1.Paid, DSum("[Budget]-[Paid]","[table1]","[paid] <=" & [paid]) AS Balance
    FROM Table1
    GROUP BY Table1.Budget, Table1.Paid
    ORDER BY DSum("[Budget]-[Paid]","[table1]","[paid] <=" & [paid]) DESC;

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

Similar Threads

  1. Sum Of Rows
    By Arsalan in forum Database Design
    Replies: 1
    Last Post: 01-15-2013, 07:22 AM
  2. Insert all rows to access database
    By krasi_e_d in forum Access
    Replies: 5
    Last Post: 10-10-2012, 01:42 PM
  3. Replies: 0
    Last Post: 02-09-2012, 05:43 PM
  4. Replies: 2
    Last Post: 08-28-2011, 06:06 AM
  5. Combining rows
    By Bing in forum Queries
    Replies: 1
    Last Post: 06-09-2011, 12:54 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