Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Made Accounting Software but in Ledger Report I Use Farmula for Opening Balance or Balance Farwad I Use Farmula Below

VB
=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
Updated 21-May-12 0:00am
v3
Comments
VJ Reddy 21-May-12 7:04am    
Thank you for accepting the solution :)

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900