Jump to content

Recommended Posts

Posted (edited)

Boas pessoal, estou a debater-me com o seguinte problema:

Tenho uma aplicação no VB10 Express, e estou a tentar eliminar um registo da minha bd em ACCESS,

ja tenho quase todo o projecto feito mas quando clico no botão eliminar, surge-me o seguinte erro:

TableAdapterManager contains no connection information. Set each TableAdapterManager TableAdapter property to a valid TableAdapter instance.

sendo que o meu código é o seguinte:

Private Sub CloudStartMenuButton6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloudStartMenuButton6.Click

Dim mensagem = "Deseja eliminar o registo actual"

Dim titulo = "Confirmação da operação"

Dim botões = MessageBoxButtons.YesNo

Dim icone = MessageBoxIcon.Question

Dim resposta = MessageBox.Show(mensagem, titulo, botões, icone)

If resposta = Windows.Forms.DialogResult.Yes Then

Me.Validate()

Me.FilmesBindingSource.EndEdit()

Me.FilmesBindingSource.RemoveCurrent()

Me.TableAdapterManager.UpdateAll(Me.MegaMoviesDataSet)

Me.FilmesTableAdapter.Fill(Me.MegaMoviesDataSet.Filmes)

PictureBox7.Load(Banner_FilmeTextBox.Text)

End If

End Sub

Gostava que alguém me pudesse ajudar na resolução deste erro...!

Cumptos!

Edited by marcoslx
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.