How to update DSum w/o closing form?

J

James T.

Access 2000.

I have a query that sums a field called MERGAmount. I took
that query and created an autoform, MERGSUM. I took
MERGSUM and dropped it on an input form, MERG, that points
to the MERGTBL.

When I add new records to the MERG form and close the
form, then reopen it the new total shows up.

Is there a way to update the total without closing the
form?

My goal is to show a running total on the users input form
as they add new records.

Thanks,

James
 
W

Wayne Morgan

1) The updated total won't be available until the new record is saved to the
table since that is where DSum is getting its value from.

2) In the form's AfterUpdate event or, perhaps, its Current event, requery
the textbox or recalculate the form

Me.txtMyTextbox.Requery
or
Me.Recalc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top