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
Solved

How to Calculate UnBound Form Fields when Data Changes

Posted on 2006-07-11
3
319 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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