Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

Sum a tabular subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lp12 - 25 Sep 2005 13:33 GMT
Hi all,
I have a sub form that contain an amount field.
I have a Total amount field on a form that the subform is bound to. I'm
trying to add to the Total field each entrance of the amount field but with
no luck. only the LostFocus seems to do the trick but i don't think that the
user will even enter the amount field(the amount field is calculated).
Any suggestions?
Thanks in advance
Ofer - 25 Sep 2005 13:49 GMT
On the after update event of the amount field, you can write the code
Me.Refresh
That way the sum field will update after you enter the new amount and not
after you exit the record

Signature

I hope that helped
Good luck

> Hi all,
> I have a sub form that contain an amount field.
[quoted text clipped - 4 lines]
> Any suggestions?
> Thanks in advance
Lp12 - 25 Sep 2005 14:55 GMT
Hi Ofer and thanks for the reply.
The problem is that the procedure doesn't trigger the AfterUpdate event at
all.
I've tried to write the sub there but nothing happened.

> On the after update event of the amount field, you can write the code
> Me.Refresh
[quoted text clipped - 9 lines]
> > Any suggestions?
> > Thanks in advance
Ofer - 25 Sep 2005 15:38 GMT
It will trigger the after update event of the field, only when you exit that
field.

Signature

I hope that helped
Good luck

> Hi Ofer and thanks for the reply.
> The problem is that the procedure doesn't trigger the AfterUpdate event at
[quoted text clipped - 14 lines]
> > > Any suggestions?
> > > Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.