Click here to Skip to main content
13,354,132 members (57,583 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I Made Accounting Software but in Ledger Report I Use Farmula for Opening Balance or Balance Farwad I Use Farmula Below

=Nz(DSum("[debit]-[credit]","Ledger_query_backup","[account] = " & [Forms]![Ledger]![Accid] & " AND [Date] = #" & Format([Forms]![Ledger]![stdate],"yyyy-mm-dd") & "#"),0)

Is Not working i Need ur Advice how To Resolve This kindly help me out or resolved it and send it to me

Thanking you
muhammad aamir
File Link Attached[^]
Posted 21-May-12 0:07am
Updated 21-May-12 1:00am
Mehdi Gholam350.9K
VJ Reddy 21-May-12 7:04am
Thank you for accepting the solution :)

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The reason may be that the value of [Forms]![Ledger]![Accid] being a text type has to be enclosed within ' '. So replace

" & [Forms]![Ledger]![Accid] & " with

'" & [Forms]![Ledger]![Accid] & "'
I think it may work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100