V
Vel.
Hello,
I'm currently trying to work on generating a function that will delete
records from a table and add them to a new table for storage until a later
date. Specifically, something like this:
Move current record from tblActivity to DELActivity (i.e. cut from
tblActivity and paste to DELActivity).
Preferably, I would like to send only the table name to the function, but
I'm not sure of how to actually tell Access to cut from one table and paste
to the next. I imagine the best way to do this would be through the use of
SQL, but I can't figure out the statement.
I was thinking something like
"INSERT INTO DEL" & stTable & " [Current Record] AND DELETE FROM tbl" &
stTable & " [Current Record]"
Now, I know I'm probably way off base in which Methods I should use, but I
don't generally use SQL in this manner unless it's in the design view of a
Query; in which case I don't write it myself.
I'm currently trying to work on generating a function that will delete
records from a table and add them to a new table for storage until a later
date. Specifically, something like this:
Move current record from tblActivity to DELActivity (i.e. cut from
tblActivity and paste to DELActivity).
Preferably, I would like to send only the table name to the function, but
I'm not sure of how to actually tell Access to cut from one table and paste
to the next. I imagine the best way to do this would be through the use of
SQL, but I can't figure out the statement.
I was thinking something like
"INSERT INTO DEL" & stTable & " [Current Record] AND DELETE FROM tbl" &
stTable & " [Current Record]"
Now, I know I'm probably way off base in which Methods I should use, but I
don't generally use SQL in this manner unless it's in the design view of a
Query; in which case I don't write it myself.