掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
Accessデータベースのデータを更新するには? (ID:78429)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
多分、oDbConStingはOleDbConnectionの事と前提して記述します。 Insert文を流したいだけであれば、 Dim m_cmd As IDbCommand Dim strSQL as string = "INSERT INTO Baitai (BaitaiCode, BaitaiName)" & _ " VALUES ('" & txtCode.Text & "', '" & txtName.Text & "')" Try m_cmd = m_oDbConSting.CreateCommand m_cmd.CommandText = strSQL m_cmd.ExecuteNonQuery() 'コマンド実行 Catch ex As Exception 'エラートラップ System.Windows.Forms.MessageBox.Show(ex.Message) End Try で実行できますよ
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.