im trying to achieve a command button which copies a record from one table to another and then deletes the original once it has been copied. The code i have used is as follows:
-------------------------------------------------------
Dim strSQL As String
strSQL = "Insert Into tblresults Select TOP 1 * from tblfixtures"
DoCmd.RunSQL strSQL
strSQL = "Delete TOP 1 * from tblfixtures"
----------------------------------------------------------
does anybody know where i am goin wrong with the "delete" bit because that is the part whihc does not work!!
-------------------------------------------------------
Dim strSQL As String
strSQL = "Insert Into tblresults Select TOP 1 * from tblfixtures"
DoCmd.RunSQL strSQL
strSQL = "Delete TOP 1 * from tblfixtures"
----------------------------------------------------------
does anybody know where i am goin wrong with the "delete" bit because that is the part whihc does not work!!