I have an append and delete query that I want to run off the onclick of one command button. Currently it is only appending data and not deleting.
I have this in the criteria for the append and delete query's
[Forms]![Form Name]![From Field]
Here is what I have for the code of the command button as well:
Private Sub cmdArchive1_Click()
DoCmd.OpenQuery "AddRecord"
DoCmd.OpenQuery "ArchiveRecord"
End Sub
Can any one offer any help??
I have this in the criteria for the append and delete query's
[Forms]![Form Name]![From Field]
Here is what I have for the code of the command button as well:
Private Sub cmdArchive1_Click()
DoCmd.OpenQuery "AddRecord"
DoCmd.OpenQuery "ArchiveRecord"
End Sub
Can any one offer any help??