If t8.Text < DateTime.Now.ToString("MMMM dd,yyyy") Then MsgBox("You cannot assign the burial date because it was already elapsed", MsgBoxStyle.Information, "Cannot be") t8.Text = DateTime.Now.ToString("MMMM dd,yyyy") End If If CheckBox1.Checked = True Then If svb.Text = "SAVE" Then If t1.Text.Length = 0 Or t2.Text.Length = 0 Or t3.Text.Length = 0 Or t4.Text.Length = 0 Or _ t5.Text.Length = 0 Or t6.Text.Length = 0 Or t7.Text.Length = 0 Or t8.Text.Length = 0 Or _ t9.Text.Length = 0 Or t10.Text.Length = 0 Or t11.Text.Length = 0 Then MsgBox("You cannot add null values", MsgBoxStyle.Information, "Null") Refresh() Else roomIsAvailable1() End If ElseIf svb.Text = "Update" Then roomIsAvailable2() End If ElseIf CheckBox1.Checked = False Then MsgBox("Reservation cannot be added because the required documents are not present, please check the checkbox if it is already presented", MsgBoxStyle.Exclamation, "Documents not presented") End If
If svb.text="Update" Then ' Update data End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)