I accidently converted my 4.5 .NET framework applciation to 4.0 and then back again without manually editing any code. I now have an error when trying to load up a database using a Oledb connection.
Import and declarations:
Connectionstring and open:
Public Class frmAutoReport
Dim conn As New OleDb.OleDbConnection
Dim ds As New DataSet
Dim daReports As New OleDbDataAdapter
Dim Sql As String
The messsage box does not display and none of my controls have information filled in from the database.
conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\reports.accdb"
What could cause this? Was something changed automatically when converting that I didn't notice?