System.Data.dll

时间:2017-02-01 19:11:17

标签: vb.net visual-studio oledb oledbconnection

你可以在VB.NET中帮助我这里是database的图片。  我越来越疯狂,我找不到句子中的错误

这里是代码

oConn.ConnectionString = strConn
oConn.Open()
If oConn.State = ConnectionState.Open Then
    ACommand = New OleDbCommand("SELECT reparacoes.acessorios,maquinas.marca FROM reparacoes INNER JOIN maquinas on reparacoes.cod_maquina=maquinas.cod_maquina", oConn)
    'define um dataAdapter
    AAdapter = New OleDbDataAdapter()
    AAdapter.SelectCommand = ACommand
    'define e preenche um DataTable com os dados
    ATabela = New DataTable()
    AAdapter.Fill(ATabela)
    ' associar campos a base de dados
    xy = ATabela.CreateDataReader
    ' Ler da tabela
    linha = ACommand.ExecuteReader
    While linha.Read()
    End While
End If
oConn.Close()

我找不到错误,

感谢您的帮助 最好的祝福 何塞洛佩斯

0 个答案:

没有答案