Hi All,
I have encounter a data binding error as shown on the picture below. This error is only triggered when I click on a New button and trying to clear away the existing datas in the form as shown in the VB coding. Pls offer your generous advice. Thanks.
Code:Private Sub clear() On Error Resume Next TxtFName.Text = "" txtLName.Text = "" TxtAdd.Text = "" txtpostalCode.Text = "" Txttel.Text = "" txtHP.Text = "" TxtEmail.Text = "" txtCarModel.Text = "" txtClassType.Text = "" ListRates.Text = "" End Sub Private Sub cmdNew_Click() inv.AddNew Call clear txt_RentDay.Text = Format(Now, "dd/mm/yyyy") txt_RetDay.Enabled = True txt_RetDay.SetFocus Cbo_Cust.Enabled = True Cbo_Reg.Enabled = True cmdFirst.Enabled = False cmdBack.Enabled = False cmdNext.Enabled = False cmdLast.Enabled = False cmdNew.Enabled = False cmdedit.Enabled = False CmdAdd.Enabled = True cmdDelete.Enabled = False cmdCancel.Enabled = True cmdExit.Enabled = True End Sub![]()




Reply With Quote