vb中DataGrid1怎么在界面中实现连接不同的数据库
展开全部
If rs1.Bookmark = 1 Then rs.close
rs1.open......
if rs1.RecordCount > 0 Then
Set DataGrid1.DataSource=rs1
endif
If rs2.Bookmark = 1 Then rs.close
rs2.open......
if rs2.RecordCount > 0 Then
Set DataGrid1.DataSource=rs2
endif
rs1.open......
if rs1.RecordCount > 0 Then
Set DataGrid1.DataSource=rs1
endif
If rs2.Bookmark = 1 Then rs.close
rs2.open......
if rs2.RecordCount > 0 Then
Set DataGrid1.DataSource=rs2
endif
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询