lans = MsgBox("ID:" & id.Value & " を削除してもよろしいですか?", vbYesNo + vbInformation, "確認")
If lans = vbYes Then
strSql = "DELETE FROM table WHERE [id] = " & id.Value
DoCmd.SetWarnings False
DoCmd.RunSQL (strSql)
DoCmd.Requery
DoCmd.SetWarnings True
End If
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme