Académique Documents
Professionnel Documents
Culture Documents
Now open your project and press “Ctrl + T” to add two components Ado and Masked Edit Control
Select these two options from the list
add some fields, seven text fields, nine labels, two combo box, two option buttons, nine command buttons, two frames and
two Masked box fallow the below image.
Here is a trick that I have add two masked box behind two fields you can see them in below image. and you will also repeat
this trick
Your masked edit box should be hide ok
Now before to do anything you change the name for each field, which I have done in below image
txtName txt_d_o_j
txt_address
txtNo txt_tel_no Text1
txt_d_o_b
txt_course_id Text2
txt_faculty_id
txt_age cmdSearch
cmdSave cmdDelete cmdUpdate
cmdFirst
cmdNext
cmdLast
cmdPrevious
Now go to code window and write this code on the top
After that, double click on the form and write this code.
cmdFirst.Enabled = False
cmdLast.Enabled = False
cmdNext.Enabled = False
cmdPrevious.Enabled = False
cmdDelete.Enabled = False
cmdSearch.Enabled = False
cmdUpdate.Enabled = False
cmdSave.Visible = True
cmdAdd.Visible = False
End If
End Sub