hI,
I have a form which contain StudentId field with a search & clear btn.
how can i:
1. clear the form with all its fields (apprx.35 textbox, combo, date picker, listbox etc) when clear button is pressed
2. when i put the focus on StudentId to type the Id in the form header prior to click on clear btn..the fields e.g name , address, phone etc in the form should get cleared.
Is there any way other than:
Private Sub Command2_Click()
Me.Text4 = ""
Me.Combo6 = ""
Form.Form.Requery
End Sub
I have a form which contain StudentId field with a search & clear btn.
how can i:
1. clear the form with all its fields (apprx.35 textbox, combo, date picker, listbox etc) when clear button is pressed
2. when i put the focus on StudentId to type the Id in the form header prior to click on clear btn..the fields e.g name , address, phone etc in the form should get cleared.
Is there any way other than:
Private Sub Command2_Click()
Me.Text4 = ""
Me.Combo6 = ""
Form.Form.Requery
End Sub