Hello Rick,
I understand that you cannot add or edit data in query of a running
balance. If I'm off-base, please let me know.
Based on my experience, if I use a query such as following, I was able to
edit/add record to accountdetails record form bound to the query and show
balance properly.
SELECT AccountDetails.AccountDetailID AS
AccountDetailIDAlias,AccountDetails.AccountID, AccountDetails.Date,
AccountDetails.Invoice,
AccountDetails.Debit, AccountDetails.Credit,
Format(DSum("[Debit]-[Credit]","AccountDetails","[AccountDetailID]<=" &
[AccountDetailIDAlias]),".00") AS Balance FROM AccountDetails;
Since the balance in the form may not update after you add/edit record in
the form, you may use a command click event or other event you want to
update the query
Me.Requery
For example, I once used a command to update the balance after editing.
Also, you may want to consider use a subform or different query to do the
job other than doing this in the same query. Or you could do this via code
other than in query directly. Please refer to the following links for some
details:
http://groups.google.com/group/microsoft.public.access.forms/browse_thread/t
hread/d586449f7aa69731/c51ce4ca9874d499?lnk=st&q=%22Running+Balance%22+acces
s&rnum=3&hl=en#c51ce4ca9874d499
http://groups.google.com/group/microsoft.public.access.forms/browse_thread/t
hread/3622b98134e8712/0c525849eca5d7b7?lnk=st&q=%22Running+Balance%22+access
&rnum=13&hl=en#0c525849eca5d7b7
Please let's know if you have further questions or concerns, please let's
know. Thank you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<
http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.