Hai everybody especially senior members
I wrote a clear sub function
requirement: when I click the add commend button which calls clearall sub function
DTPicker1.Value is not cleared
DTPicker2.Value is not cleared
I have to clear these two object when i click the add commend.
To avoid error i put the two DTPicker objects in comment mode in clearall function
my code is :
Thanks in advance
I wrote a clear sub function
requirement: when I click the add commend button which calls clearall sub function
DTPicker1.Value is not cleared
DTPicker2.Value is not cleared
I have to clear these two object when i click the add commend.
To avoid error i put the two DTPicker objects in comment mode in clearall function
my code is :
Code:
Public Sub clearall()
cmdUpdate.Enabled = False
cmdDelete.Enabled = False
cmdSave.Enabled = True
txtMemID.Text = ""
txtMemNo.Text = ""
cmbDeposit.Text = ""
txtMemName.Text = ""
txtFatherName.Text = ""
'DTPicker2.Value = ""
txtResAdd.Text = ""
txtOffAdd.Text = ""
cmbGender.Text = ""
cmbDesign.Text = ""
txtTelNo.Text = ""
'DTPicker1.Value = ""
txtStatus.Text = ""
txtSurity.Text = ""
txtMemNo.SetFocus
End Sub