Greets, all.....
i'm a casual access user, who has wandered into waters that are too deep.
have 2 tables (table_a & table_b)related by a common id number... no referential integrity hassles because the tables already contain orphaned data that i have to keep.
what i'd like to do is this:
from the form that displays the data (displayform), create a button that will archive the selected record from table_a, and any related child records from table_b to a third & fourth table (arc_table_a, and arc_table_b). I'd then like to delete the now archived records from table_a & table_b. I have been trying to do this with an update query, with no success, and then i started looking for a way to do it programmatically. I also was wondering if SQL statements would work.
ex:
the open form has a field named 'id' that corresponds to the field names in the active and archive tables
select * from table_a where table_a.id = displayform.id
select * from table_b where table_b.id = displayform.id
am i headed in the right direction?
any assistence is appreciated.
i'm a casual access user, who has wandered into waters that are too deep.
have 2 tables (table_a & table_b)related by a common id number... no referential integrity hassles because the tables already contain orphaned data that i have to keep.
what i'd like to do is this:
from the form that displays the data (displayform), create a button that will archive the selected record from table_a, and any related child records from table_b to a third & fourth table (arc_table_a, and arc_table_b). I'd then like to delete the now archived records from table_a & table_b. I have been trying to do this with an update query, with no success, and then i started looking for a way to do it programmatically. I also was wondering if SQL statements would work.
ex:
the open form has a field named 'id' that corresponds to the field names in the active and archive tables
select * from table_a where table_a.id = displayform.id
select * from table_b where table_b.id = displayform.id
am i headed in the right direction?
any assistence is appreciated.