Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

The DataAdapter.SelectCommand property needs to be initialized.

Avatar of aarontham
aarontham asked on
Visual Basic ClassicVisual Basic.NET
6 Comments1 Solution2207 ViewsLast Modified:
i use VB.net 2008 and Firebird. below is my code.
the code fire by button. and first fire is ok. and the follow by second fire then i got this error (The DataAdapter.SelectCommand property needs to be initialized.)

If MsgBox("Do you want save the changes? ", vbYesNo, "Aaron's routine...") = vbYes Then
            Me.Cursor = Cursors.AppStarting

            Using connection As New FbConnection(cnString)

                Dim builder As FbCommandBuilder = New FbCommandBuilder(DACom)
                MessageBox.Show("Successfully Saved")

            End Using

        End If