Hello,
I am attempting to use an append query to move one record from onetable to another. I am using the below SQL code, but when I run it I get amessage stating that 2 rows will be appended, but I only want to append thecurrent record that is being viewed on a form. FYI - The tables being used haveall the same fields. Where did I go wrong?
I will also need to delete the record (one record; currently selectedrecord) once it has been moved to the archive table. Would a query be best todo this?
Please note: there has been an issue when I type directly in the forum.So I have been typing these messages in word and copy/pasting into the forum.So some of my sentences/words may be missing spaces. That is not how it’s beingtyped it’s just how it’s being pasted for some reason.
Thank you
I am attempting to use an append query to move one record from onetable to another. I am using the below SQL code, but when I run it I get amessage stating that 2 rows will be appended, but I only want to append thecurrent record that is being viewed on a form. FYI - The tables being used haveall the same fields. Where did I go wrong?
Code:
[/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]INSERT INTO archive_RET_Accumulated[/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]SELECT RET_Accumulated.*[/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]FROM RET_Accumulated;[/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]
I will also need to delete the record (one record; currently selectedrecord) once it has been moved to the archive table. Would a query be best todo this?
Please note: there has been an issue when I type directly in the forum.So I have been typing these messages in word and copy/pasting into the forum.So some of my sentences/words may be missing spaces. That is not how it’s beingtyped it’s just how it’s being pasted for some reason.
Thank you