寻求 连接ACCess数据库 的 vb.net程序?简单一点的查询就可以,!
展开全部
imports system.data
imports system.data.oledb
pirivate sub button1_click(....)
dim myconnection as new oledbconnection("provider=microsoft.jet.oledb.4.0;data source=数据库位置")
dim mycommand as oledncommand
dim mydatareader as oledbdatareader
myconnection.open()
mycommand=new oledbcommand("select * from 表",myconnection)
mydatareader=mycommand.executereader()
相关操作(比如显示数据)
mydatareader.close()
myconnection.close()
end sub
imports system.data.oledb
pirivate sub button1_click(....)
dim myconnection as new oledbconnection("provider=microsoft.jet.oledb.4.0;data source=数据库位置")
dim mycommand as oledncommand
dim mydatareader as oledbdatareader
myconnection.open()
mycommand=new oledbcommand("select * from 表",myconnection)
mydatareader=mycommand.executereader()
相关操作(比如显示数据)
mydatareader.close()
myconnection.close()
end sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询