Click here to Skip to main content
12,881,367 members (29,539 online)
Rate this:
Please Sign up or sign in to vote.
See more: All-Topics
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 20-May-12 23:07pm
Updated 21-May-12 0:00am
Mehdi Gholam334.5K
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 | Mobile
Web02 | 2.8.170422.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2017
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