标题:为什么提示“)”有语法错误
取消只看楼主
L483342650
Rank: 2
等 级:论坛游民
帖 子:11
专家分:10
注 册:2021-7-19
结帖率:100%
 问题点数:0 回复次数:0 
为什么提示“)”有语法错误
Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: 这行代码将数据加载到表“练习DataSet.CustomTemp”中。您可以根据需要移动或删除它。
        Me.CustomTempTableAdapter.Fill(Me.练习DataSet.CustomTemp)
    End Sub
    Private Sub insertdate()
        Dim strSQL As String = "select * from 员工表)"
        Dim coonstring As String = "Data Source=SWPDM\SWPDM;Initial Catalog=练习;User ID=sa;Password=521500..Zz"
        Dim adapt As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter(strSQL, coonstring)
        Dim customDS As New DataSet()
        Dim cmdbuild As SqlClient.SqlCommandBuilder = New SqlClient.SqlCommandBuilder(adapt)
        adapt.Fill(customDS, "员工表")
        Dim row As DataRow = customDS.Tables(0).NewRow
        row("id") = 1
        row("名称") = 2
        row("规格") = 3
        row("材料") = 4
        customDS.Tables("员工表").Rows.Add(row)
        adapt.Update(customDS, "员工表")
        MsgBox("tianjiawanc")
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        insertdate()
    End Sub
End Class
搜索更多相关主题的帖子: row Sub Dim 员工 End 
2021-07-22 15:20



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




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

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