You need to pass a reference to the dataset when you open the new
form.
Ken
---------------------
"Stan" <Stanle...@cs.com> wrote in message
news:029701c39b1e$530de6d0$a101...@phx.gbl...
The code below shows you how to do that with a textbox control. You can
adapt it for your needs easily.
In the 2nd form:
\\\
Private m_t As TextBox
Public Sub New(ByVal ResultTextBox As TextBox)
MyBase.New()
m_t = ResultTextBox
InitializeComponent()
End Sub
' You can access the control with m_t.
///
Main form:
\\\
Dim f As New Form1(Me.TextBox1)
f.Show()
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>