visual studio 2010连接access2007
连接代码如下:Dim cnn As OleDb.OleDbConnection
Dim da As OleDb.OleDbDataAdapter
Dim ds As DataSet
cnn = New OleDb.OleDbConnection("provider=microsoft.ace.oledb.12.0;data source=Database1.accdb")
da = New OleDb.OleDbDataAdapter("select * from student", cnn)
ds = New DataSet
da.Fill(ds, "s")
DataGridView1.DataSource = ds.Tables("s")
我是32位的操作系统可以在自己的机子上运行,但是放到别的32位上就会出错:Unhandled exception has occurred in your application.if you click continue,the application will ignore this error and attempt to continue.if you click quit.the application will close immediately.
the "microsoft.ace.oledb.12.0' provider is not registered on the local machine.
到64位的机子上又有不一样的错误
花了一天也没有解决,做毕业设计卡这里了
,请问高手们这该如何解决。。。感激不尽啊,先拜谢了!