I've had no problems deleting records elsewhere in this program that I'm writing, only when trying to get the info from this textbox. This particular problem starts when I fill certain records into various control array textboxes. When I click on the "delete" button, I want VB to delete the entrant that has the "jobref" number from the relevant textbox in the array.
Here's the code I've been using:
================================================
Private Sub cmdDelete_Click(Index As Integer)
SQLQuery = "SELECT * FROM tblDiary WHERE EntryID LIKE '*txtID(Index).Text*'"
Set rsDiary = dbMadeUp.OpenRecordset(SQLQuery)
rsDiary.Edit
rsDiary.Delete
rsDiary.Update
End Sub
================================================
Any help will be much appreciated!
Colin
Here's the code I've been using:
================================================
Private Sub cmdDelete_Click(Index As Integer)
SQLQuery = "SELECT * FROM tblDiary WHERE EntryID LIKE '*txtID(Index).Text*'"
Set rsDiary = dbMadeUp.OpenRecordset(SQLQuery)
rsDiary.Edit
rsDiary.Delete
rsDiary.Update
End Sub
================================================
Any help will be much appreciated!
Colin