Click here to Skip to main content
Rate this: bad
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
Edited 21-May-12 0:00am
Mehdi Gholam232.9K
VJ Reddy at 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
0 OriginalGriff 5,374
1 Sergey Alexandrovich Kryukov 4,713
2 Peter Leow 2,944
3 DamithSL 2,465
4 Maciej Los 2,270

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