Click here to Skip to main content
12,349,349 members (69,964 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
https://sites.google.com/site/darfun835/download/my.accdb?attredirects=0&d=1[^]
Posted 20-May-12 23:07pm
Edited 21-May-12 0:00am
Mehdi Gholam311.4K
v3
Comments
VJ Reddy 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2016
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