L
lackeysc
I have a very simple form with a very simple problem but my very
simple mind doesn't seem to be capable of coming up with the very
simple solution. The on click event runs an append query and then a
delete query which are both working fine. I then requery the form but
the records are not going away. Instead, the fields all say deleted in
them. Thanks in advance for your help.
Here is the very simple code:
Private Sub btnExport_Click()
DoCmd.SetWarnings False
On Error GoTo Err_btnExport_Click
Dim stDocName As String
stDocName = "qryAppendToMaster"
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.OpenQuery "qryDeleteFromReview", acViewNormal, acEdit
Exit_btnExport_Click:
Exit Sub
Err_btnExport_Click:
MsgBox Err.Description
Resume Exit_btnExport_Click
DoCmd.SetWarnings True
Me.Requery
End Sub
simple mind doesn't seem to be capable of coming up with the very
simple solution. The on click event runs an append query and then a
delete query which are both working fine. I then requery the form but
the records are not going away. Instead, the fields all say deleted in
them. Thanks in advance for your help.
Here is the very simple code:
Private Sub btnExport_Click()
DoCmd.SetWarnings False
On Error GoTo Err_btnExport_Click
Dim stDocName As String
stDocName = "qryAppendToMaster"
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.OpenQuery "qryDeleteFromReview", acViewNormal, acEdit
Exit_btnExport_Click:
Exit Sub
Err_btnExport_Click:
MsgBox Err.Description
Resume Exit_btnExport_Click
DoCmd.SetWarnings True
Me.Requery
End Sub