Solved

Open form 2 from form 1 have records match

Posted on 2007-11-15
2
160 Views
Last Modified: 2013-11-26
I have a button on form one that opens form 2 by using frmAgency.Show()  but form 2 always displays the first record instead of the record that is on form 1.  How can I fix this?  
Thanks!
0
Comment
Question by:BobRosas
[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
2 Comments
 
LVL 18

Accepted Solution

by:
vbturbo earned 125 total points
ID: 20290719
try this if you use vb.net 2005

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Form2.Label1.Text = Label1.Text
        Form2.Show()
    End Sub

vbturbo
0
 

Author Comment

by:BobRosas
ID: 20290810
That worked!
You guys are good!
Thank you so much!
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …

730 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