Cita:
The type initializer for 'WindowsApplication1.module1' threw an exception.
Codigo:
Modulo:
Imports System
Imports System.Data.OleDb
Public dr As DataRow = dt.Rows(fila)
Public dt As DataTable Public
ordenventas As OleDbDataAdapter
Public dsventas As DataSet
Public conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|\database2003.mdb")
Luego desde cualquier formulario intento abrir la base de datos
Imports System.Data.SqlClient
Imports System
Imports System.Data.OleDb
conn.open
Ahí es cuando tira ese error. Muchas gracias.
Alguien sabe a que se debe?
Muchas gracias!