i have resolved my first problem but i have come accoress another one.
VB Code:
Private Sub cmdDelete_Click()
On Error GoTo DataError
With Data3.Recordset
Data3.Recordset.Delete
[color=green]
'---- delete may work
'---- but you haven't opened the bit below for editting or adding a new record..
'---- try the next line
Data3.Recordset.AddNew
[/color]
Data3.Recordset.Fields("MembershipNumber") = cboMembershipNo.Text
Data3.Recordset.Fields("FullName") = txtName.Text
Data3.Recordset.Fields("Address") = txtAddress.Text
Data3.Recordset.Fields("DateOfBirth") = txtDateOfBirth.Text
Data3.Recordset.Fields("TelephoneNumber") = txtTelephone.Text
Data3.Recordset.Fields("OtherInfo") = txtAddInfo.Text
[color=green]
'---- Not sure if this line would be needed
Data3.Recordset.Update
[/color]
Data3.Refresh
End With
Exit Sub
DataError:
MsgBox Err.Description
End Sub
it doens't delete the record until i close the application completly any ideas how i get around this ??????