Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 November 23rd, 2004, 10:19 AM
Authorized User
 
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default Creating and transfering data to a new form...

Hi there,

I need to fill in data on one form and have it appear on another form, like a sales report.Could somebody help me with actually creating and naming the second form and then making sure that data taken on first form appears as a sales report in the second form.

Any help or tips wpold be greatly appreciated.

 
Old November 24th, 2004, 12:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

If you want to do a report have you thought about using Crystal Reports? If you have Visual Studio it is free to use.

J
 
Old November 24th, 2004, 05:43 AM
Authorized User
 
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

I am not able to use crystal at the moment and am looking for an alternative way of doing it.

B

 
Old November 30th, 2004, 08:09 AM
Authorized User
 
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

Could anyone help me with tis problem, just want to know how to save information entered on one form and have that information then appear on a different ie.Sales report

Thanks again
B

 
Old December 7th, 2004, 12:12 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are a number of different ways you can do it. Probably the easiest, provided you only have a few pieces of information you want passed, would be to create properties on your second form (we'll call it frmReport) and then pass those values from your first form to your second form once you've initialized it.

dim new frmReport as Form2
frmReport.Total = me.txtTotal.text
frmReport.ItemID = me.txtItemID.text
frmReport.CustID = me.txtCustID.text


You could also create a structure with all the pieces of information you want to pass. Then declare variables on both forms that are of this type you just created and just pass it back and forth.

Hope that helps.


 
Old December 9th, 2004, 05:16 AM
Authorized User
 
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

Thanks so much, that does help.

Much appreciated
B






Similar Threads
Thread Thread Starter Forum Replies Last Post
Php transfering data to mysql Gaurava PHP How-To 2 January 5th, 2008 07:33 AM
Transfering enteries in the same form scandalous Access 3 February 22nd, 2007 11:15 AM
Transfering data from csv file to data base g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 2 May 16th, 2006 11:58 PM
Handle key violations in transfering data. jsgilmer SQL Server DTS 2 November 15th, 2004 12:11 PM
Transfering data from one machine to another..... nikosdra SQL Server 2000 0 September 6th, 2003 05:08 AM





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