Hi,
I have been using this application for 3 months. It was working fine till yesterday. But now it is not working. Showing runtime error '13' when I am trying to save the data (and it highlights the code which is shown in bold in the following code).
The following is the code:
VB Code:
Private Sub cmdSave_Click() If txtCustomerName.Text <> "" Then With rs .AddNew .Fields("CustomerName").Value = txtCustomerName.Text .Fields("SalesPerson").Value = txtSalesPerson.Text .Fields("InvoiceNumber").Value = txtInvoiceNumber.Text [B] .Fields("InvoiceDate").Value = CDate(txtInvoiceDate.Text)[/B] .Fields("InvoiceAmount").Value = CCur(txtInvoiceAmount.Text) .Fields("Description").Value = txtDescription.Text .Fields("CreditPeriod").Value = CLng(txtCreditPeriod.Text) .Fields("FileNumber").Value = txtFileNumber.Text .Fields("City").Value = txtCity.Text .Update End With Call Enable_FormControls Call Save_UpdateControls Call Instructions cmdSave.Enabled = False Else Call Enable_FormControls Call Save_UpdateControls Call Instructions cmdSave.Enabled = False End If End Sub
Thanks in advance.
Regards,
Seema_S




Reply With Quote