Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2008, 07:32 AM
Authorized User
 
Join Date: Oct 2007
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to debbiecoates
Default Derived Field

Is it possible to have a derived field in VB6 like you can in MSAccess
eg if I have 2 fields in called A and B, in access I can then place an unbound field on my form and set the control source to =[A] + [B], and anytime I edit either field, the derived field will recalculate.

can this be done in VB?

or would you have to fire an event everytime you changed either field A or B?

 
Old February 19th, 2008, 02:13 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

VB is not a Relational Database Management System (RDBMS).

The joining of fileds, or the presenting of a calculation as a field, would be a function to the RDBMS (Oracle, SQL Server, etc.)

If the RDBMS will support it, then if you put it into the SQL you run against the RDBMS will return the desired resluts.
 
Old February 20th, 2008, 06:58 AM
Authorized User
 
Join Date: Oct 2007
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to debbiecoates
Default

Oh right, cheers






Similar Threads
Thread Thread Starter Forum Replies Last Post
transforming types derived by extension? whelanj XSLT 4 April 12th, 2008 06:50 AM
Not a ReportDocument derived class chokk Crystal Reports 0 May 10th, 2006 08:21 AM
Force Derived Method rodmcleay C# 7 June 1st, 2005 01:19 AM
Using reflection to get derived classes jaucourt VB.NET 2002/2003 Basics 0 May 10th, 2004 09:14 AM
Not a ReportDocument derived class error AnotherUser BOOK: Professional Crystal Reports for VS.NET 0 March 9th, 2004 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.