Solved

How to Calculate UnBound Form Fields when Data Changes

Posted on 2006-07-11
3
321 Views
Last Modified: 2008-01-09
Hi,
I'm using VB 2005.
I have a database Application which displays an Invoice.  I'm only saving Certain Fields in the db, For this example assume it's a Subtotal amount and Freight amount.  
I have an unbound Text Field Call Total, which I have a procedure to calculate it's total.

I'm using all components for the database connection ie.  datasets, bindingsource, tableadapter, and navigator.

MY question simply is, where the best place to call my procedure to Calculate the Total whenever the database loads a new record.

I'm thinking on the Bindingsource.posistionChanged but I'm not sure.

Anyother pointers would be helpful.

0
Comment
Question by:shibumila
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
nickhoggard earned 125 total points
ID: 17088049
Hi,

We've used BindingSource.CurrentChanged to do similar things in the past.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.bindingsource.currentchanged.aspx

Cheers

Nick
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question