Jump to content
Fórum Script Brasil
  • 0

Navegação Entre Registros


Alam-bique
 Share

Question

Olá.

Eu trabalhava com vba mas o pessoal aqui sismou de usar o novo vb.net para o frontend das aplicações... E eu precsava criar botões de navegação entre os registros.

PARA ACESSAR O BANCO CRIEI ESTE CODIGO

Sub Form_Load(Src As Object, E As EventArgs)

Dim StringConn as string ="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE='banco.mdb');"

Dim objConn as New OleDBConnection(StringConn)

ObjConn.Open()

Dim StrSql as string = "SELECT * FROM tabela"

Dim objComd as New OleDBCommand(strSql, objconn)

Dim objReader as OleDbDataReader

ObjReader = objComd.ExecuteReader

ObjReader.Read()

Txtcampo1.text = objReader(0)

Txtcampo1.text = objReader(1)

objConn.Close()

End Sub

Será que alguém pode me dizer como ficaria o codigo para mover para o proximo registro... Pois não encontrei nenhum metodo pra isso.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...