EXIBIR RELATORIO ACESS
Como posso exibir um relatório de Access no VB?
Faz o seguinte:
Private Sub ExibirRelatorio(Caminho as string,Nome as string)
' Referencia MS Access 8.0 Object Library
Dim MSAccess As Access.Application
Set MSAccess = New Access.Application
MSAccess.OpenCurrentDatabase Caminho, False
MSAccess.DoCmd.OpenReport Nome, acViewNormal
MSAccess.CloseCurrentDatabase
Set MSAccess = Nothing
End Sub
espero ter ajudado!!!
qualquer dúvida... pergunte-me, blz
fuiii
Private Sub ExibirRelatorio(Caminho as string,Nome as string)
' Referencia MS Access 8.0 Object Library
Dim MSAccess As Access.Application
Set MSAccess = New Access.Application
MSAccess.OpenCurrentDatabase Caminho, False
MSAccess.DoCmd.OpenReport Nome, acViewNormal
MSAccess.CloseCurrentDatabase
Set MSAccess = Nothing
End Sub
espero ter ajudado!!!
qualquer dúvida... pergunte-me, blz
fuiii
Tópico encerrado , respostas não são mais permitidas