D
danitrin via AccessMonster.com
I'm not sure where to post this, so I'm trying here first. I have inherited
a database that is split between a front end and a back end. In both the
front and the back in there is a table called tblABLExamHistory. I'm using
the code to delete records from this table. However, this code only deletes
the record from the front end. Each time a form is opened in the front end,
it refreshes the data in the front end with the data in the back end, which
causes the record that was just deleted from the front end to reappear
(because it's not been deleted from the back end). HOw can I go about
getting the record to delete from both places? I'm not insterested in
redesigning the database, I just want to make this feature work.
Dim strSQL As String
Dim db As DAO.Database
If MsgBox("Are you sure you want to delete this record?", vbQuestion +
vbYesNo, "Delete Record") = vbYes Then
Set db = CurrentDb
strSQL = "DELETE * FROM tblablExamHistory WHERE [ablexamId] = " & _
Me.txtABLExamID
db.Execute strSQL
End If
DoCmd.Close
a database that is split between a front end and a back end. In both the
front and the back in there is a table called tblABLExamHistory. I'm using
the code to delete records from this table. However, this code only deletes
the record from the front end. Each time a form is opened in the front end,
it refreshes the data in the front end with the data in the back end, which
causes the record that was just deleted from the front end to reappear
(because it's not been deleted from the back end). HOw can I go about
getting the record to delete from both places? I'm not insterested in
redesigning the database, I just want to make this feature work.
Dim strSQL As String
Dim db As DAO.Database
If MsgBox("Are you sure you want to delete this record?", vbQuestion +
vbYesNo, "Delete Record") = vbYes Then
Set db = CurrentDb
strSQL = "DELETE * FROM tblablExamHistory WHERE [ablexamId] = " & _
Me.txtABLExamID
db.Execute strSQL
End If
DoCmd.Close