标题:vb dataset
只看楼主
小真丁丁
Rank: 2
等 级:论坛游民
帖 子:36
专家分:18
注 册:2009-9-20
结帖率:58.33%
已结贴  问题点数:10 回复次数:1 
vb dataset
小弟刚学···问题有时候会雷人····望大侠~~
Dim conn As OleDbConnection = New OleDbConnection
        Dim cmd As OleDbCommand = New OleDbCommand
        Dim da As OleDbDataAdapter = New OleDbDataAdapter
        Dim ds As DataSet = New DataSet
        conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\vb\vbnetDB\dbtest.mdb"
        conn.Open()
        cmd.Connection = conn
         = "select * from student,tuser"
        da.SelectCommand = cmd
        da.Fill(ds, "student")
        Me.DataGrid1.DataSource = ds.Tables("student")
        conn.Close()
搜索更多相关主题的帖子: dataset 
2010-05-31 15:02
wei855198
Rank: 8Rank: 8
等 级:蝙蝠侠
威 望:5
帖 子:228
专家分:944
注 册:2009-4-24
得分:10 
你的问题是?


护肤小店 http://mina2010.
靓装小店 http://liangliyizu2010.
2010-05-31 17:22



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-308806-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024997 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved