Click here to Skip to main content
Rate this: bad
good
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
https://sites.google.com/site/darfun835/download/my.accdb?attredirects=0&d=1[^]
Posted 21-May-12 0:07am
Edited 21-May-12 1:00am
Mehdi Gholam266.9K
v3
Comments
VJ Reddy at 21-May-12 7:04am
   
Thank you for accepting the solution :)

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 645
1 Maciej Los 225
2 Abhinav S 171
3 Richard Deeming 160
4 Suvendu Shekhar Giri 159
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 9,135
2 Peter Leow 5,042
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,581


Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2015
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