Chad Z. Hower aka Kudzu said:
Its probably a permission issue with the database file.
--
Chad Z. Hower (a.k.a. Kudzu) -
http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Blog:
http://blogs.atozed.com/kudzu
Hi, I t hink it's not a permission issue, because the same user can open the
database and with windows 2000 the same program works fine.
I have tried it in my win XP and works fine. My XP have Office XP, and the
PC when don't work have Office 2003, can be this the problem ? I can belive
that this things happen.
This is the code.
Dim Miconsulta As OleDb.OleDbDataReader
'Crea la conexión
Try
BD = New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=mybd.mdb")
Catch e As Exception
MessageBox.Show("Error al crear la conexión: " & vbCrLf &
e.message)
End Try
Dim cmd As OleDb.OleDbCommand
cmd = New OleDb.OleDbCommand("Select * from P_ListaArbol", BD)
Try
BD.Open()
Catch e As OleDb.OleDbException
Console.WriteLine("An exception occurred. Please contact
your system administrator.")
End Try
cmd.CommandType = CommandType.Text
Miconsulta = cmd.ExecuteReader()
While Miconsulta.Read()
......